Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ShaderRenderModeValidation.cs / 1305600 / 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
- Rotation3DAnimationUsingKeyFrames.cs
- SeparatorAutomationPeer.cs
- ObjectParameterCollection.cs
- PathSegmentCollection.cs
- VScrollProperties.cs
- objectquery_tresulttype.cs
- ContentDesigner.cs
- SystemMulticastIPAddressInformation.cs
- SamlDelegatingWriter.cs
- MonitoringDescriptionAttribute.cs
- wgx_commands.cs
- TreeViewDataItemAutomationPeer.cs
- PagesSection.cs
- TypeToken.cs
- MeasureItemEvent.cs
- BoolExpression.cs
- OutputCacheModule.cs
- ListViewGroupConverter.cs
- HtmlShimManager.cs
- VectorKeyFrameCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- ConfigurationManagerHelper.cs
- EventSourceCreationData.cs
- ContentTextAutomationPeer.cs
- SplitterCancelEvent.cs
- ExtensionFile.cs
- SecurityProtocolCorrelationState.cs
- ServiceOperationParameter.cs
- UTF7Encoding.cs
- TextEditorParagraphs.cs
- x509store.cs
- PasswordBoxAutomationPeer.cs
- SkewTransform.cs
- CqlParserHelpers.cs
- CreateUserWizardStep.cs
- ObjectStateFormatter.cs
- MenuBase.cs
- DirectoryNotFoundException.cs
- SingleBodyParameterMessageFormatter.cs
- GroupBox.cs
- Message.cs
- DebugHandleTracker.cs
- EmptyCollection.cs
- UInt64.cs
- AttachmentService.cs
- BitStack.cs
- TouchDevice.cs
- ListViewCommandEventArgs.cs
- GAC.cs
- CustomAttribute.cs
- InputMethod.cs
- BypassElement.cs
- ChangePassword.cs
- HyperLinkColumn.cs
- MimeWriter.cs
- SafeRegistryHandle.cs
- CompressEmulationStream.cs
- EncoderNLS.cs
- DesignerDataView.cs
- TextViewBase.cs
- CompositeCollectionView.cs
- SapiRecoInterop.cs
- WSHttpBindingCollectionElement.cs
- ParameterToken.cs
- ZipFileInfoCollection.cs
- Base64Encoding.cs
- InterleavedZipPartStream.cs
- DoubleCollectionValueSerializer.cs
- LazyTextWriterCreator.cs
- TimeManager.cs
- Int16Animation.cs
- Pointer.cs
- WindowsGraphicsWrapper.cs
- QueueException.cs
- listviewsubitemcollectioneditor.cs
- FileStream.cs
- XMLSchema.cs
- SQLDateTime.cs
- StreamFormatter.cs
- BlobPersonalizationState.cs
- FtpRequestCacheValidator.cs
- RunInstallerAttribute.cs
- MostlySingletonList.cs
- BitmapScalingModeValidation.cs
- StringToken.cs
- CodeArgumentReferenceExpression.cs
- OleDbParameterCollection.cs
- UInt64.cs
- BamlStream.cs
- ToolStripSplitButton.cs
- PhysicalOps.cs
- XamlGridLengthSerializer.cs
- ObjectItemAssemblyLoader.cs
- HtmlInputPassword.cs
- SecureStringHasher.cs
- UnhandledExceptionEventArgs.cs
- DataTableReader.cs
- XdrBuilder.cs
- CfgParser.cs
- ObjectConverter.cs