Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ResourceAttributes.cs
- MetadataFile.cs
- MarkupWriter.cs
- StylusPointCollection.cs
- ExpressionVisitorHelpers.cs
- XmlValidatingReaderImpl.cs
- XmlDomTextWriter.cs
- ServerValidateEventArgs.cs
- ClickablePoint.cs
- EntitySetBaseCollection.cs
- WindowsGraphics2.cs
- ItemCollection.cs
- TimeBoundedCache.cs
- ProcessHost.cs
- ConfigurationManagerHelperFactory.cs
- AssociationSet.cs
- SMSvcHost.cs
- ThousandthOfEmRealPoints.cs
- LayoutEvent.cs
- TextWriter.cs
- ContentElementAutomationPeer.cs
- DesignerDataRelationship.cs
- ObjectNotFoundException.cs
- LocalizableResourceBuilder.cs
- HtmlProps.cs
- PageThemeCodeDomTreeGenerator.cs
- Trace.cs
- unsafenativemethodsother.cs
- PersonalizableTypeEntry.cs
- RadialGradientBrush.cs
- AttachedPropertyDescriptor.cs
- ConfigurationLocationCollection.cs
- DtdParser.cs
- SafeTokenHandle.cs
- SqlConnection.cs
- ToolboxItemLoader.cs
- MouseEvent.cs
- PersonalizationStateInfoCollection.cs
- MarkupCompilePass1.cs
- DescendantQuery.cs
- IdentityHolder.cs
- Size.cs
- DSASignatureDeformatter.cs
- VoiceObjectToken.cs
- DynamicResourceExtensionConverter.cs
- MemberPath.cs
- ValidationUtility.cs
- CollectionViewGroupRoot.cs
- TemplateBindingExtension.cs
- DelegateTypeInfo.cs
- DocumentGrid.cs
- TextCompositionManager.cs
- FrameworkObject.cs
- EndpointConfigContainer.cs
- ImageKeyConverter.cs
- InteropAutomationProvider.cs
- XmlCharType.cs
- HostedImpersonationContext.cs
- FirstMatchCodeGroup.cs
- TdsParserStateObject.cs
- BaseParser.cs
- WindowsScroll.cs
- Rotation3D.cs
- ScrollChrome.cs
- Vector3DAnimation.cs
- Sql8ConformanceChecker.cs
- MultiView.cs
- QueryRelOp.cs
- KeyTimeConverter.cs
- BaseParagraph.cs
- InputReferenceExpression.cs
- ServerIdentity.cs
- X509SecurityTokenAuthenticator.cs
- QuaternionIndependentAnimationStorage.cs
- cookiecontainer.cs
- FilteredReadOnlyMetadataCollection.cs
- TextDecorationCollection.cs
- DoubleConverter.cs
- IntranetCredentialPolicy.cs
- TableChangeProcessor.cs
- SqlClientFactory.cs
- VBIdentifierName.cs
- DocumentsTrace.cs
- ExpandCollapsePatternIdentifiers.cs
- LogStream.cs
- ConstructorNeedsTagAttribute.cs
- WebPartConnectionCollection.cs
- Range.cs
- WorkflowServiceBehavior.cs
- MultiSelectRootGridEntry.cs
- ControlPaint.cs
- Ipv6Element.cs
- CategoryAttribute.cs
- Baml2006SchemaContext.cs
- TemplateManager.cs
- LineBreakRecord.cs
- CodeTypeConstructor.cs
- SystemResourceKey.cs
- CheckBox.cs
- HierarchicalDataTemplate.cs