Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / ShaderRenderModeValidation.cs / 1 / ShaderRenderModeValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media.Effects { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsShaderRenderModeValid(object valueObject) { ShaderRenderMode value = (ShaderRenderMode) valueObject; return (value == ShaderRenderMode.Auto) || (value == ShaderRenderMode.SoftwareOnly) || (value == ShaderRenderMode.HardwareOnly); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media.Effects { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsShaderRenderModeValid(object valueObject) { ShaderRenderMode value = (ShaderRenderMode) valueObject; return (value == ShaderRenderMode.Auto) || (value == ShaderRenderMode.SoftwareOnly) || (value == ShaderRenderMode.HardwareOnly); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputScope.cs
- BaseHashHelper.cs
- Nullable.cs
- RijndaelManagedTransform.cs
- HttpModuleActionCollection.cs
- EncoderBestFitFallback.cs
- SHA512.cs
- GridViewCancelEditEventArgs.cs
- EntityDescriptor.cs
- TemplateApplicationHelper.cs
- RoleManagerEventArgs.cs
- DataTableReader.cs
- SystemIPInterfaceStatistics.cs
- ArrayTypeMismatchException.cs
- AudioStateChangedEventArgs.cs
- CapabilitiesUse.cs
- ApplicationId.cs
- JournalNavigationScope.cs
- XmlSchemaSimpleTypeUnion.cs
- ManipulationInertiaStartingEventArgs.cs
- ServicePointManager.cs
- InternalPermissions.cs
- Adorner.cs
- XDRSchema.cs
- ContainerParagraph.cs
- WindowsPen.cs
- SchemaImporter.cs
- Registry.cs
- QueryCursorEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- ServiceChannelFactory.cs
- Pen.cs
- GenericUriParser.cs
- ItemTypeToolStripMenuItem.cs
- BulletedListEventArgs.cs
- DelegatingHeader.cs
- RegistryKey.cs
- LineServicesRun.cs
- BaseCollection.cs
- ImplicitInputBrush.cs
- XMLSchema.cs
- Point.cs
- cookiecontainer.cs
- XmlExtensionFunction.cs
- ReadOnlyDictionary.cs
- ZipFileInfo.cs
- ParameterExpression.cs
- BuiltInExpr.cs
- MessageRpc.cs
- XmlDataSourceNodeDescriptor.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GroupBoxAutomationPeer.cs
- AspProxy.cs
- KeyPressEvent.cs
- CompilerScope.Storage.cs
- XmlSchemaObjectCollection.cs
- LoginView.cs
- XmlWellformedWriter.cs
- SqlNotificationRequest.cs
- entityreference_tresulttype.cs
- HashLookup.cs
- LogLogRecordHeader.cs
- ReferentialConstraintRoleElement.cs
- DSACryptoServiceProvider.cs
- DirectionalLight.cs
- HttpInputStream.cs
- Point3DIndependentAnimationStorage.cs
- Utils.cs
- RemotingConfiguration.cs
- DesignConnection.cs
- WindowsListViewItem.cs
- QilXmlWriter.cs
- TrackingMemoryStreamFactory.cs
- DataGridView.cs
- HashAlgorithm.cs
- SecurityDocument.cs
- HtmlTextArea.cs
- DecimalKeyFrameCollection.cs
- PageVisual.cs
- ReplacementText.cs
- ILGenerator.cs
- TemplateControlCodeDomTreeGenerator.cs
- SchemaImporter.cs
- MenuCommandsChangedEventArgs.cs
- assertwrapper.cs
- RawKeyboardInputReport.cs
- CreateInstanceBinder.cs
- FontCollection.cs
- NavigationCommands.cs
- AnnotationResourceChangedEventArgs.cs
- IDispatchConstantAttribute.cs
- InternalConfigRoot.cs
- EntityRecordInfo.cs
- FreezableDefaultValueFactory.cs
- CaseCqlBlock.cs
- DataObjectAttribute.cs
- Accessible.cs
- TextFormatterImp.cs
- InputProcessorProfilesLoader.cs
- SimpleTypeResolver.cs