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
- PolicyReader.cs
- FormViewAutoFormat.cs
- VectorCollectionConverter.cs
- MenuAdapter.cs
- XmlSchemaComplexContentRestriction.cs
- InputReferenceExpression.cs
- StatusBarDrawItemEvent.cs
- ClonableStack.cs
- PartManifestEntry.cs
- ExpressionCopier.cs
- MD5.cs
- FrameworkElementFactory.cs
- Configuration.cs
- WizardStepBase.cs
- DbConnectionOptions.cs
- XmlDocumentSurrogate.cs
- SqlBulkCopy.cs
- Debugger.cs
- XmlSchemaException.cs
- DataTableMappingCollection.cs
- Int64Storage.cs
- WebCategoryAttribute.cs
- ClientReliableChannelBinder.cs
- ValidatedControlConverter.cs
- cookiecontainer.cs
- ImageKeyConverter.cs
- StickyNoteContentControl.cs
- ErasingStroke.cs
- LineServices.cs
- XmlAtomicValue.cs
- MediaPlayerState.cs
- MessagePropertyVariants.cs
- CodeBinaryOperatorExpression.cs
- DoubleUtil.cs
- FastEncoder.cs
- IResourceProvider.cs
- RecordsAffectedEventArgs.cs
- WindowsTooltip.cs
- ViewRendering.cs
- ComNativeDescriptor.cs
- RequestBringIntoViewEventArgs.cs
- LinearQuaternionKeyFrame.cs
- EventBookmark.cs
- QueryMath.cs
- ResourceSet.cs
- QilParameter.cs
- DataServiceExpressionVisitor.cs
- BamlTreeMap.cs
- UserNameSecurityTokenProvider.cs
- CompilerParameters.cs
- MethodInfo.cs
- GridViewDeleteEventArgs.cs
- ControlHelper.cs
- AttributeCollection.cs
- SchemaImporterExtension.cs
- SignatureToken.cs
- ReflectPropertyDescriptor.cs
- TreeBuilder.cs
- DataMember.cs
- DescendentsWalker.cs
- HtmlWindow.cs
- PrimitiveCodeDomSerializer.cs
- DesignerActionKeyboardBehavior.cs
- SafeArrayTypeMismatchException.cs
- BaseValidator.cs
- ScriptServiceAttribute.cs
- CqlBlock.cs
- CanExecuteRoutedEventArgs.cs
- MessagePartProtectionMode.cs
- ResetableIterator.cs
- PartialArray.cs
- EntityClassGenerator.cs
- shaperfactoryquerycachekey.cs
- Size.cs
- VSWCFServiceContractGenerator.cs
- LoginName.cs
- NavigationProgressEventArgs.cs
- IIS7WorkerRequest.cs
- WindowsScrollBarBits.cs
- ToolStripPanelRenderEventArgs.cs
- BookmarkScopeInfo.cs
- WebPartPersonalization.cs
- CompiledXpathExpr.cs
- MetadataArtifactLoaderCompositeResource.cs
- DBCommandBuilder.cs
- DefaultAsyncDataDispatcher.cs
- Resources.Designer.cs
- PartialTrustVisibleAssembly.cs
- DrawingAttributesDefaultValueFactory.cs
- PassportAuthenticationEventArgs.cs
- DataTransferEventArgs.cs
- WasAdminWrapper.cs
- WebPartZoneBase.cs
- LOSFormatter.cs
- StrongName.cs
- TreeViewBindingsEditorForm.cs
- LinkGrep.cs
- RuleRef.cs
- UITypeEditor.cs
- DataGridViewControlCollection.cs