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
- DtdParser.cs
- ExpressionVisitor.cs
- OdbcInfoMessageEvent.cs
- InlineUIContainer.cs
- X509Utils.cs
- IResourceProvider.cs
- ObjectSet.cs
- Clipboard.cs
- DataComponentNameHandler.cs
- safex509handles.cs
- InteropAutomationProvider.cs
- Context.cs
- CombinedGeometry.cs
- StringComparer.cs
- Int64AnimationUsingKeyFrames.cs
- ToolboxDataAttribute.cs
- RemotingConfigParser.cs
- TimelineClockCollection.cs
- ItemCheckedEvent.cs
- XmlUrlResolver.cs
- MaskedTextProvider.cs
- DataListItemEventArgs.cs
- PropertyRecord.cs
- ToolBar.cs
- PartialTrustVisibleAssembly.cs
- SynchronizationLockException.cs
- SByte.cs
- FailedToStartupUIException.cs
- DelayedRegex.cs
- PrintDialogDesigner.cs
- ApplicationSecurityManager.cs
- AlgoModule.cs
- NegationPusher.cs
- ThreadSafeList.cs
- MatrixCamera.cs
- ContractSearchPattern.cs
- login.cs
- Brush.cs
- StrongNameKeyPair.cs
- BitmapEffectGeneralTransform.cs
- Rotation3DAnimation.cs
- IsolatedStorageException.cs
- WindowVisualStateTracker.cs
- PropertyStore.cs
- GeneralTransform3DGroup.cs
- _SslStream.cs
- WebServiceErrorEvent.cs
- EntityStoreSchemaGenerator.cs
- XmlArrayAttribute.cs
- SwitchExpression.cs
- HitTestResult.cs
- BitmapEffect.cs
- MediaTimeline.cs
- PanelStyle.cs
- ConfigXmlDocument.cs
- ExecutionScope.cs
- UInt64Converter.cs
- AffineTransform3D.cs
- PackageRelationshipCollection.cs
- IIS7WorkerRequest.cs
- XomlCompilerParameters.cs
- DataKeyArray.cs
- XmlQuerySequence.cs
- PageAsyncTask.cs
- SpeechAudioFormatInfo.cs
- FileDialogCustomPlace.cs
- SystemIcmpV6Statistics.cs
- ContractUtils.cs
- Paragraph.cs
- KeyedCollection.cs
- ConnectionConsumerAttribute.cs
- Variable.cs
- arclist.cs
- CodeTypeConstructor.cs
- ContainerControl.cs
- GuidelineSet.cs
- BamlTreeUpdater.cs
- UInt32.cs
- BinHexEncoding.cs
- ImageSourceValueSerializer.cs
- TrackingProfileDeserializationException.cs
- LeafCellTreeNode.cs
- NavigatingCancelEventArgs.cs
- EmissiveMaterial.cs
- MetadataCache.cs
- ModelChangedEventArgsImpl.cs
- ControlAdapter.cs
- FacetValues.cs
- InvalidProgramException.cs
- RelationshipWrapper.cs
- COM2Enum.cs
- Wildcard.cs
- SqlClientPermission.cs
- Bitmap.cs
- SoapIgnoreAttribute.cs
- Normalization.cs
- MarshalByValueComponent.cs
- CompensableActivity.cs
- Trace.cs
- TableMethodGenerator.cs