Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- sqlcontext.cs
- SafeSecurityHandles.cs
- UrlAuthorizationModule.cs
- ChildrenQuery.cs
- MetadataUtilsSmi.cs
- TileModeValidation.cs
- StringBuilder.cs
- DataControlImageButton.cs
- GregorianCalendar.cs
- EntityConnectionStringBuilder.cs
- ScriptingJsonSerializationSection.cs
- SqlXml.cs
- ExtensionSimplifierMarkupObject.cs
- TextCompositionManager.cs
- TableLayoutStyle.cs
- EdmTypeAttribute.cs
- TextViewBase.cs
- FieldNameLookup.cs
- AppDomainFactory.cs
- EnumDataContract.cs
- DeferredTextReference.cs
- SafeNativeMethods.cs
- ViewValidator.cs
- XmlWrappingReader.cs
- FileAuthorizationModule.cs
- FixedTextPointer.cs
- TextTreeTextBlock.cs
- FontFamilyIdentifier.cs
- CodeTryCatchFinallyStatement.cs
- TemplateApplicationHelper.cs
- Tile.cs
- OutputCacheProviderCollection.cs
- ObjectFullSpanRewriter.cs
- Documentation.cs
- BridgeDataRecord.cs
- InterleavedZipPartStream.cs
- SQLBytesStorage.cs
- QueryStringParameter.cs
- DoubleConverter.cs
- MemberRelationshipService.cs
- DrawingAttributes.cs
- SchemaImporterExtension.cs
- CodeMemberField.cs
- DependencyObjectPropertyDescriptor.cs
- SynchronizedInputPattern.cs
- HtmlInputPassword.cs
- UnsafeNetInfoNativeMethods.cs
- GeometryDrawing.cs
- FacetValueContainer.cs
- RequestChannelBinder.cs
- TransactionCache.cs
- SecuritySessionFilter.cs
- PersonalizableAttribute.cs
- MessageBox.cs
- VScrollProperties.cs
- InnerItemCollectionView.cs
- StringResourceManager.cs
- MeasureData.cs
- QilStrConcatenator.cs
- WebCategoryAttribute.cs
- XmlUtil.cs
- RichTextBox.cs
- ActivitySurrogateSelector.cs
- DataControlFieldCollection.cs
- Light.cs
- FixedSOMPage.cs
- ConfigurationConverterBase.cs
- _NtlmClient.cs
- SafeRightsManagementHandle.cs
- DelegateBodyWriter.cs
- MemberInfoSerializationHolder.cs
- DateTimeFormatInfoScanner.cs
- XPathNavigatorReader.cs
- TextFormatter.cs
- QueryExpression.cs
- ResourceReader.cs
- ServiceProviders.cs
- EdmMember.cs
- HashLookup.cs
- UIElementParagraph.cs
- DynamicActivityTypeDescriptor.cs
- SimpleFieldTemplateFactory.cs
- TimelineGroup.cs
- ViewStateModeByIdAttribute.cs
- ConstructorArgumentAttribute.cs
- ThreadPoolTaskScheduler.cs
- ImageMap.cs
- LowerCaseStringConverter.cs
- RawAppCommandInputReport.cs
- AvTrace.cs
- DataGridTextColumn.cs
- ICollection.cs
- CheckBoxStandardAdapter.cs
- CreateParams.cs
- Graphics.cs
- ReadOnlyNameValueCollection.cs
- IncrementalReadDecoders.cs
- SQLMembershipProvider.cs
- BaseAsyncResult.cs
- UnsafeNativeMethods.cs