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
- UserControl.cs
- TextDecorationUnitValidation.cs
- TypedDataSourceCodeGenerator.cs
- EntityClientCacheKey.cs
- ParallelActivityDesigner.cs
- UiaCoreApi.cs
- MimeObjectFactory.cs
- SimpleFieldTemplateFactory.cs
- DataPagerFieldCommandEventArgs.cs
- ControlIdConverter.cs
- DataRelationPropertyDescriptor.cs
- ItemsControlAutomationPeer.cs
- HwndSource.cs
- EntityViewContainer.cs
- BitmapCacheBrush.cs
- TextSimpleMarkerProperties.cs
- WsdlExporter.cs
- QueryResponse.cs
- IPEndPoint.cs
- SoapReflector.cs
- SapiRecoInterop.cs
- PenContexts.cs
- unsafenativemethodstextservices.cs
- DesignBindingEditor.cs
- FacetDescription.cs
- RemoveStoryboard.cs
- EmbeddedMailObjectsCollection.cs
- StrokeRenderer.cs
- XmlExtensionFunction.cs
- Module.cs
- NativeMethods.cs
- Int64Converter.cs
- SourceItem.cs
- XmlMemberMapping.cs
- TextRange.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- TransformerInfo.cs
- WmpBitmapDecoder.cs
- TreeViewItemAutomationPeer.cs
- RuleInfoComparer.cs
- ByteConverter.cs
- DbDataReader.cs
- EventPrivateKey.cs
- UserNameSecurityTokenParameters.cs
- OracleEncoding.cs
- SqlMultiplexer.cs
- TimeZoneInfo.cs
- WebPartDescriptionCollection.cs
- StoreContentChangedEventArgs.cs
- FixedDocumentPaginator.cs
- AuthorizationRuleCollection.cs
- ScriptManager.cs
- CodeParameterDeclarationExpressionCollection.cs
- SpellerStatusTable.cs
- ToolStripDropTargetManager.cs
- DataGridViewRowsRemovedEventArgs.cs
- CheckBoxStandardAdapter.cs
- TextDecorationCollectionConverter.cs
- WebDescriptionAttribute.cs
- XPathNodeHelper.cs
- IOException.cs
- SharedHttpsTransportManager.cs
- SecurityUniqueId.cs
- HttpConfigurationSystem.cs
- BufferAllocator.cs
- MdImport.cs
- StorageSetMapping.cs
- RangeContentEnumerator.cs
- DesignerCategoryAttribute.cs
- AppDomainFactory.cs
- SqlGatherConsumedAliases.cs
- FrameworkContentElementAutomationPeer.cs
- ModelTreeEnumerator.cs
- HttpPostedFile.cs
- ListControlConvertEventArgs.cs
- MetricEntry.cs
- OutgoingWebRequestContext.cs
- TextComposition.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- InternalResources.cs
- diagnosticsswitches.cs
- BindingManagerDataErrorEventArgs.cs
- ConfigXmlElement.cs
- ListSortDescriptionCollection.cs
- IgnoreSectionHandler.cs
- OrCondition.cs
- CodeTypeMemberCollection.cs
- DropShadowEffect.cs
- Transform.cs
- CodeMemberField.cs
- ImageKeyConverter.cs
- SqlDataSourceConnectionPanel.cs
- Ray3DHitTestResult.cs
- FutureFactory.cs
- VariableElement.cs
- SortedList.cs
- StandardCommands.cs
- PlatformCulture.cs
- WebMessageEncodingElement.cs
- OdbcPermission.cs