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
- LocalTransaction.cs
- Triplet.cs
- IisTraceWebEventProvider.cs
- WarningException.cs
- AnnouncementEndpointElement.cs
- DecimalStorage.cs
- Cell.cs
- Oid.cs
- Cursor.cs
- AnchoredBlock.cs
- OdbcParameter.cs
- SelectionRange.cs
- ConnectionPoint.cs
- XmlNamespaceMapping.cs
- PathGeometry.cs
- Binding.cs
- UIPropertyMetadata.cs
- SecurityContextTokenValidationException.cs
- ToolStripDropDownClosingEventArgs.cs
- ApplicationSecurityManager.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Attributes.cs
- ICollection.cs
- ContentElement.cs
- ObjectViewEntityCollectionData.cs
- GZipDecoder.cs
- FunctionDetailsReader.cs
- RangeValueProviderWrapper.cs
- StateMachine.cs
- StrokeNodeData.cs
- EvidenceTypeDescriptor.cs
- XPSSignatureDefinition.cs
- HttpApplicationFactory.cs
- Int32CollectionValueSerializer.cs
- Span.cs
- ProfileManager.cs
- CqlLexerHelpers.cs
- AtomServiceDocumentSerializer.cs
- TreeNodeEventArgs.cs
- CompositeDesignerAccessibleObject.cs
- SslStream.cs
- ServiceModelSecurityTokenRequirement.cs
- HtmlTableRow.cs
- AppLevelCompilationSectionCache.cs
- Rotation3D.cs
- StreamAsIStream.cs
- DesignTimeData.cs
- XComponentModel.cs
- XmlNodeList.cs
- WindowsRichEdit.cs
- DataGridClipboardCellContent.cs
- TemplateBaseAction.cs
- UriSectionReader.cs
- ControlCachePolicy.cs
- BackoffTimeoutHelper.cs
- XmlSchemaSimpleTypeUnion.cs
- RuntimeEnvironment.cs
- UnsignedPublishLicense.cs
- DecimalConstantAttribute.cs
- LiteralDesigner.cs
- Timer.cs
- versioninfo.cs
- embossbitmapeffect.cs
- AssemblyCollection.cs
- TextTreeTextBlock.cs
- SimpleType.cs
- TemplateControlBuildProvider.cs
- CalloutQueueItem.cs
- ThreadNeutralSemaphore.cs
- File.cs
- ButtonBase.cs
- FactoryGenerator.cs
- DbProviderFactoriesConfigurationHandler.cs
- GorillaCodec.cs
- CodeObjectCreateExpression.cs
- SqlXmlStorage.cs
- translator.cs
- InternalTypeHelper.cs
- XmlText.cs
- ProgressBar.cs
- TableItemPattern.cs
- UIPermission.cs
- RegionInfo.cs
- OleDbException.cs
- PanelStyle.cs
- ChtmlCommandAdapter.cs
- ListViewInsertEventArgs.cs
- ObjectDataSource.cs
- FilteredDataSetHelper.cs
- ListenerConnectionDemuxer.cs
- Serializer.cs
- ConnectionPoint.cs
- SafeNativeMemoryHandle.cs
- Divide.cs
- TabRenderer.cs
- DefinitionUpdate.cs
- StatusBar.cs
- Table.cs
- DiscoveryDefaults.cs
- RewritingProcessor.cs