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
- TransactionScope.cs
- PackageRelationshipSelector.cs
- _AuthenticationState.cs
- LinkedDataMemberFieldEditor.cs
- ConfigurationConverterBase.cs
- BufferCache.cs
- XmlBufferedByteStreamReader.cs
- LineProperties.cs
- OleDbFactory.cs
- GridItemCollection.cs
- AsyncResult.cs
- LowerCaseStringConverter.cs
- DocumentViewerHelper.cs
- NamespaceInfo.cs
- FormViewInsertedEventArgs.cs
- ContentElementAutomationPeer.cs
- SafePEFileHandle.cs
- CryptoApi.cs
- CodeSnippetStatement.cs
- WebPartConnectionCollection.cs
- NonceCache.cs
- ToolStripMenuItemDesigner.cs
- LinkClickEvent.cs
- MultiDataTrigger.cs
- EnvelopedPkcs7.cs
- DynamicMethod.cs
- DynamicPropertyReader.cs
- StringKeyFrameCollection.cs
- QilFunction.cs
- PenLineJoinValidation.cs
- ToolStripTextBox.cs
- QuotedStringFormatReader.cs
- Stylus.cs
- TextSpanModifier.cs
- VirtualizedContainerService.cs
- SQLUtility.cs
- ObjectStateFormatter.cs
- AssociatedControlConverter.cs
- XmlAttribute.cs
- RenderDataDrawingContext.cs
- TerminatorSinks.cs
- Activity.cs
- DeclarationUpdate.cs
- HtmlForm.cs
- HashJoinQueryOperatorEnumerator.cs
- ThreadPool.cs
- Tablet.cs
- QilFactory.cs
- NetSectionGroup.cs
- StorageMappingItemCollection.cs
- TreePrinter.cs
- TextBoxView.cs
- ContractAdapter.cs
- HtmlHead.cs
- EntityDataSourceSelectedEventArgs.cs
- UniqueIdentifierService.cs
- DtdParser.cs
- AttributeData.cs
- BitmapDecoder.cs
- Bezier.cs
- TextEditorMouse.cs
- Trigger.cs
- ValidatorAttribute.cs
- SQLSingle.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Panel.cs
- ReferencedType.cs
- ObjectMemberMapping.cs
- ShaderRenderModeValidation.cs
- TextRangeEdit.cs
- GradientStop.cs
- StringWriter.cs
- OlePropertyStructs.cs
- PropertyInformation.cs
- NativeCppClassAttribute.cs
- XmlQueryType.cs
- ByteStreamGeometryContext.cs
- DirectoryObjectSecurity.cs
- MatrixCamera.cs
- WebBodyFormatMessageProperty.cs
- CodeAssignStatement.cs
- SignatureDescription.cs
- SBCSCodePageEncoding.cs
- LogReserveAndAppendState.cs
- SqlUtils.cs
- CollectionChangedEventManager.cs
- BinHexEncoding.cs
- HyperLinkField.cs
- PropertyTab.cs
- FactoryRecord.cs
- RoutedEventArgs.cs
- DBDataPermissionAttribute.cs
- ToolStripOverflow.cs
- ReadOnlyPropertyMetadata.cs
- ItemList.cs
- XmlQueryContext.cs
- HierarchicalDataBoundControl.cs
- PasswordBoxAutomationPeer.cs
- ObjectDataSourceDisposingEventArgs.cs
- NameTable.cs