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
- XmlName.cs
- LinkGrep.cs
- _SSPIWrapper.cs
- shaperfactory.cs
- MessageContractAttribute.cs
- UriScheme.cs
- ResourceExpressionBuilder.cs
- CompilerHelpers.cs
- WebServiceEnumData.cs
- SqlGatherConsumedAliases.cs
- Variant.cs
- ProtocolsConfigurationHandler.cs
- HtmlInputButton.cs
- LinkConverter.cs
- TextDecorations.cs
- SerializableAttribute.cs
- ExceptionValidationRule.cs
- DirectoryNotFoundException.cs
- DurableOperationAttribute.cs
- EntityContainerEmitter.cs
- SiteMapNodeItem.cs
- RectAnimation.cs
- DbXmlEnabledProviderManifest.cs
- FrameworkElementAutomationPeer.cs
- ExceptionNotification.cs
- XpsInterleavingPolicy.cs
- SoapHeader.cs
- RankException.cs
- DbConnectionPoolGroup.cs
- LingerOption.cs
- ScriptReference.cs
- Span.cs
- NonVisualControlAttribute.cs
- ClientEventManager.cs
- Message.cs
- ObjectStateFormatter.cs
- VisualStyleInformation.cs
- SqlCommandSet.cs
- ResourceExpressionEditorSheet.cs
- ReceiveActivityValidator.cs
- WebPartManager.cs
- KeyBinding.cs
- SizeAnimation.cs
- ITextView.cs
- XmlSchemaComplexContentExtension.cs
- HitTestParameters.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- GetKeyedHashRequest.cs
- PageStatePersister.cs
- Win32SafeHandles.cs
- BoolExpr.cs
- RIPEMD160.cs
- ExeConfigurationFileMap.cs
- ErrorRuntimeConfig.cs
- BaseConfigurationRecord.cs
- SafeNativeMethodsCLR.cs
- ValidationSettings.cs
- ParameterElementCollection.cs
- ListenerSessionConnectionReader.cs
- MouseBinding.cs
- ObjectDataSourceFilteringEventArgs.cs
- PointF.cs
- EnumerationRangeValidationUtil.cs
- _UriTypeConverter.cs
- SuppressIldasmAttribute.cs
- DelegatedStream.cs
- ConstantSlot.cs
- OleDbCommand.cs
- SqlAliasesReferenced.cs
- ProcessHost.cs
- XslVisitor.cs
- BoundField.cs
- DesignerActionTextItem.cs
- WebPartMinimizeVerb.cs
- LayoutEditorPart.cs
- RuntimeCompatibilityAttribute.cs
- SimpleType.cs
- Rotation3D.cs
- AttributeEmitter.cs
- BaseCodePageEncoding.cs
- SQLGuidStorage.cs
- TCPClient.cs
- ClientOptions.cs
- PropertyExpression.cs
- cookieexception.cs
- Queue.cs
- MessagePropertyDescription.cs
- MailHeaderInfo.cs
- RequestStatusBarUpdateEventArgs.cs
- StyleSheet.cs
- oledbmetadatacolumnnames.cs
- SmiRequestExecutor.cs
- ResourceReferenceExpression.cs
- DesignerSerializerAttribute.cs
- ActivityStateQuery.cs
- log.cs
- SafeViewOfFileHandle.cs
- HttpRequestCacheValidator.cs
- ThemeDirectoryCompiler.cs
- SessionEndingEventArgs.cs