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
- CharacterBuffer.cs
- SQLInt64Storage.cs
- KeyPressEvent.cs
- RNGCryptoServiceProvider.cs
- PropertyPathConverter.cs
- ActivitySurrogateSelector.cs
- RoutedEvent.cs
- CodeNamespaceCollection.cs
- Typography.cs
- WCFModelStrings.Designer.cs
- NativeMethods.cs
- FixedSOMPageElement.cs
- CookieHandler.cs
- DataGridRowClipboardEventArgs.cs
- AncillaryOps.cs
- BindingSource.cs
- URLString.cs
- XmlSchemaObjectTable.cs
- MouseCaptureWithinProperty.cs
- AutomationPropertyInfo.cs
- ToolStripRenderer.cs
- JoinElimination.cs
- EncodingTable.cs
- MobileControlsSectionHelper.cs
- CodeArrayIndexerExpression.cs
- TypeSystemHelpers.cs
- LinkedResourceCollection.cs
- PersistStreamTypeWrapper.cs
- SimpleHandlerBuildProvider.cs
- WindowManager.cs
- CheckBox.cs
- Span.cs
- NamespaceQuery.cs
- FastPropertyAccessor.cs
- _HeaderInfoTable.cs
- TabPage.cs
- codemethodreferenceexpression.cs
- XmlILAnnotation.cs
- SupportsEventValidationAttribute.cs
- ConnectivityStatus.cs
- PartDesigner.cs
- ConfigXmlElement.cs
- ZipIOLocalFileBlock.cs
- LicenseContext.cs
- CaseStatementProjectedSlot.cs
- ReturnValue.cs
- COM2ExtendedTypeConverter.cs
- DecoratedNameAttribute.cs
- TcpClientSocketManager.cs
- VScrollProperties.cs
- AnnotationComponentChooser.cs
- ViewPort3D.cs
- TdsParser.cs
- TextServicesDisplayAttribute.cs
- MemberInfoSerializationHolder.cs
- FontNamesConverter.cs
- SafeArrayRankMismatchException.cs
- ContextDataSource.cs
- OutOfMemoryException.cs
- controlskin.cs
- ValidatingPropertiesEventArgs.cs
- XmlCompatibilityReader.cs
- MemberAssignment.cs
- BuildProviderAppliesToAttribute.cs
- SignatureHelper.cs
- SpellCheck.cs
- Html32TextWriter.cs
- Bidi.cs
- TripleDES.cs
- AuthenticationConfig.cs
- SerializationFieldInfo.cs
- EntityModelSchemaGenerator.cs
- Rotation3D.cs
- BindingSource.cs
- DesignerAutoFormatCollection.cs
- StatusBar.cs
- ADMembershipUser.cs
- WindowsGraphics.cs
- UnsafeNativeMethods.cs
- SplayTreeNode.cs
- ExpandoObject.cs
- Int32KeyFrameCollection.cs
- MemberDescriptor.cs
- QueryParameter.cs
- XmlSchemaRedefine.cs
- Clock.cs
- OracleInternalConnection.cs
- BaseServiceProvider.cs
- IsolatedStorageFileStream.cs
- DynamicResourceExtensionConverter.cs
- NamedObject.cs
- HandledMouseEvent.cs
- MetabaseReader.cs
- DocumentViewerHelper.cs
- PropertyEntry.cs
- WebServiceMethodData.cs
- GestureRecognizer.cs
- WpfXamlMember.cs
- SafePipeHandle.cs
- SizeAnimationBase.cs