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
- SystemColors.cs
- WebExceptionStatus.cs
- RuleSettingsCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlDataSource.cs
- CustomExpressionEventArgs.cs
- CreateDataSourceDialog.cs
- InfocardInteractiveChannelInitializer.cs
- DrawingGroup.cs
- SqlStream.cs
- StandardBindingImporter.cs
- EndpointFilterProvider.cs
- Attributes.cs
- OdbcErrorCollection.cs
- StateDesigner.CommentLayoutGlyph.cs
- DBSqlParserTable.cs
- TPLETWProvider.cs
- MethodResolver.cs
- LocalBuilder.cs
- EarlyBoundInfo.cs
- RenderCapability.cs
- SpinWait.cs
- ConfigsHelper.cs
- StorageRoot.cs
- FreezableOperations.cs
- BitmapImage.cs
- NetPeerTcpBindingCollectionElement.cs
- XmlJsonWriter.cs
- Base64Decoder.cs
- SafeArrayTypeMismatchException.cs
- _LocalDataStore.cs
- WSHttpBindingBaseElement.cs
- GridViewColumn.cs
- CompleteWizardStep.cs
- LinkTarget.cs
- SerializerProvider.cs
- KeyEventArgs.cs
- AmbientLight.cs
- SourceCollection.cs
- SqlDataSourceView.cs
- HtmlWindow.cs
- XPathNavigatorKeyComparer.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ProtocolsConfigurationEntry.cs
- GifBitmapDecoder.cs
- AssemblyHash.cs
- MetadataPropertyAttribute.cs
- FontDialog.cs
- PropertyCollection.cs
- MemberDescriptor.cs
- KnownAssemblyEntry.cs
- ProtocolsConfiguration.cs
- SecurityPermission.cs
- DoubleConverter.cs
- Marshal.cs
- PropertiesTab.cs
- SrgsRuleRef.cs
- AssemblyName.cs
- DataColumnMapping.cs
- BaseServiceProvider.cs
- DataGridViewColumnCollection.cs
- ViewRendering.cs
- ParserExtension.cs
- MessageQueue.cs
- SecurityCriticalDataForSet.cs
- GridViewSelectEventArgs.cs
- EntityDataSourceStatementEditor.cs
- MenuItemStyleCollection.cs
- BaseComponentEditor.cs
- Bits.cs
- TypeDescriptorContext.cs
- DataTableReaderListener.cs
- PerformanceCounterPermissionEntry.cs
- PropertyHelper.cs
- HostedHttpTransportManager.cs
- ContainerAction.cs
- XmlElementElement.cs
- RowToFieldTransformer.cs
- TiffBitmapDecoder.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WhereQueryOperator.cs
- _SslSessionsCache.cs
- Form.cs
- IsolatedStorageException.cs
- EditableRegion.cs
- PointCollectionValueSerializer.cs
- SourceFileBuildProvider.cs
- Transform3D.cs
- AsyncCompletedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- SynchronizedDispatch.cs
- DataSourceExpression.cs
- TypeUtil.cs
- clipboard.cs
- GlobalAclOperationRequirement.cs
- DefaultAsyncDataDispatcher.cs
- Attachment.cs
- XmlHelper.cs
- AnnotationObservableCollection.cs
- RootBrowserWindow.cs