Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / RenderingBiasValidation.cs / 1305600 / RenderingBiasValidation.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 IsRenderingBiasValid(object valueObject) { RenderingBias value = (RenderingBias) valueObject; return (value == RenderingBias.Performance) || (value == RenderingBias.Quality); } } } // 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 IsRenderingBiasValid(object valueObject) { RenderingBias value = (RenderingBias) valueObject; return (value == RenderingBias.Performance) || (value == RenderingBias.Quality); } } } // 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
- OptimizedTemplateContent.cs
- FormsAuthenticationUserCollection.cs
- ArrayListCollectionBase.cs
- ContentType.cs
- ResourceDisplayNameAttribute.cs
- ProxyElement.cs
- NumberAction.cs
- MeasurementDCInfo.cs
- HtmlImage.cs
- SqlClientFactory.cs
- LinqDataSourceStatusEventArgs.cs
- XmlSchemaAppInfo.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ConfigurationValues.cs
- MD5.cs
- AssemblyHash.cs
- XmlMapping.cs
- CompareValidator.cs
- EditBehavior.cs
- DropTarget.cs
- ControlPropertyNameConverter.cs
- DecimalConstantAttribute.cs
- DataBindingCollection.cs
- TimelineCollection.cs
- linebase.cs
- SafeNativeMethods.cs
- ExclusiveNamedPipeTransportManager.cs
- TcpTransportSecurityElement.cs
- InstanceHandleConflictException.cs
- DropShadowEffect.cs
- IntellisenseTextBox.designer.cs
- SizeKeyFrameCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- Context.cs
- MsmqHostedTransportManager.cs
- Boolean.cs
- QueryTask.cs
- NativeMethods.cs
- Native.cs
- RouteValueDictionary.cs
- DoubleCollection.cs
- HideDisabledControlAdapter.cs
- MatchingStyle.cs
- CodeTypeOfExpression.cs
- SoapConverter.cs
- AtomMaterializerLog.cs
- HttpCachePolicyElement.cs
- PropertyDescriptorCollection.cs
- TimeSpanStorage.cs
- CatchDesigner.xaml.cs
- dataprotectionpermission.cs
- SafeViewOfFileHandle.cs
- Journal.cs
- ImportContext.cs
- ContainerParagraph.cs
- AppDomainProtocolHandler.cs
- listitem.cs
- backend.cs
- EdmFunction.cs
- XmlNamespaceDeclarationsAttribute.cs
- SqlTransaction.cs
- SoapDocumentMethodAttribute.cs
- ListViewAutomationPeer.cs
- OciHandle.cs
- WindowsSecurityTokenAuthenticator.cs
- SystemIPInterfaceProperties.cs
- Package.cs
- XmlWrappingReader.cs
- BooleanAnimationUsingKeyFrames.cs
- BlockCollection.cs
- NodeLabelEditEvent.cs
- EntityProviderServices.cs
- StylusPoint.cs
- MenuEventArgs.cs
- SelectionItemProviderWrapper.cs
- MenuRendererClassic.cs
- GraphicsContext.cs
- ConfigsHelper.cs
- Int64KeyFrameCollection.cs
- LongMinMaxAggregationOperator.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextBoxAutoCompleteSourceConverter.cs
- XLinq.cs
- ServiceNotStartedException.cs
- VectorAnimation.cs
- panel.cs
- DateTimeSerializationSection.cs
- ClientConvert.cs
- IntSecurity.cs
- MulticastDelegate.cs
- CrossAppDomainChannel.cs
- ObjectStateManager.cs
- HtmlEncodedRawTextWriter.cs
- Missing.cs
- BindingOperations.cs
- StickyNoteHelper.cs
- GlyphingCache.cs
- Argument.cs
- DiscoveryVersionConverter.cs
- CharacterMetricsDictionary.cs