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
- DynamicQueryableWrapper.cs
- DataRelationPropertyDescriptor.cs
- CacheRequest.cs
- RegisteredExpandoAttribute.cs
- UnsafeNativeMethodsTablet.cs
- RSAOAEPKeyExchangeFormatter.cs
- Latin1Encoding.cs
- __ConsoleStream.cs
- SplineKeyFrames.cs
- PageSettings.cs
- ContextMenu.cs
- Console.cs
- ColumnHeader.cs
- CodeEntryPointMethod.cs
- ConfigurationPropertyAttribute.cs
- Point3DConverter.cs
- PermissionAttributes.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PrimitiveType.cs
- DataGridItemCollection.cs
- PrincipalPermission.cs
- ContentHostHelper.cs
- HtmlMeta.cs
- SystemBrushes.cs
- HMACRIPEMD160.cs
- ThrowOnMultipleAssignment.cs
- MouseWheelEventArgs.cs
- RuntimeConfigurationRecord.cs
- DeriveBytes.cs
- ParameterElementCollection.cs
- XmlSignificantWhitespace.cs
- FixedPageStructure.cs
- ChannelParameterCollection.cs
- BitmapEffectInput.cs
- ParenthesizePropertyNameAttribute.cs
- HttpModuleActionCollection.cs
- SecurityHelper.cs
- ComponentSerializationService.cs
- SqlConnectionPoolProviderInfo.cs
- Membership.cs
- DesignerTransaction.cs
- ConstructorArgumentAttribute.cs
- StartFileNameEditor.cs
- SchemaImporter.cs
- DeviceContext.cs
- TreeNode.cs
- CodeArrayCreateExpression.cs
- ResolvedKeyFrameEntry.cs
- IntSecurity.cs
- SHA512Cng.cs
- DataServiceQueryException.cs
- PowerStatus.cs
- MouseWheelEventArgs.cs
- VScrollProperties.cs
- DataGridViewLinkCell.cs
- SchemaHelper.cs
- AccessDataSourceDesigner.cs
- WhitespaceRuleReader.cs
- ColorConvertedBitmap.cs
- DependencyObject.cs
- BamlCollectionHolder.cs
- SystemWebSectionGroup.cs
- VirtualDirectoryMappingCollection.cs
- DataListItem.cs
- ExtractorMetadata.cs
- StateDesigner.cs
- SerializationSectionGroup.cs
- UidManager.cs
- EntityDataSourceChangedEventArgs.cs
- UnhandledExceptionEventArgs.cs
- FunctionDetailsReader.cs
- UrlAuthFailedErrorFormatter.cs
- TabletDeviceInfo.cs
- TransportDefaults.cs
- NewExpression.cs
- DataSourceDesigner.cs
- OdbcRowUpdatingEvent.cs
- Queue.cs
- Comparer.cs
- Point3D.cs
- log.cs
- PopupControlService.cs
- SqlReferenceCollection.cs
- StringUtil.cs
- IChannel.cs
- FloaterParagraph.cs
- FontNamesConverter.cs
- ExpressionUtilities.cs
- invalidudtexception.cs
- DigestComparer.cs
- ServiceRouteHandler.cs
- GPRECT.cs
- DataBindingCollectionConverter.cs
- TreeNodeConverter.cs
- ScrollContentPresenter.cs
- CredentialCache.cs
- HelpPage.cs
- SqlCacheDependencySection.cs
- TextWriterTraceListener.cs
- WebBrowserEvent.cs