Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / RenderingBiasValidation.cs / 1 / 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
- UInt16.cs
- StateDesigner.TransitionInfo.cs
- RawContentTypeMapper.cs
- Menu.cs
- DataBindingHandlerAttribute.cs
- SetterBase.cs
- _AuthenticationState.cs
- SelectedCellsCollection.cs
- LabelDesigner.cs
- IPipelineRuntime.cs
- WorkflowDataContext.cs
- Opcode.cs
- MessageContractMemberAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- TypeForwardedToAttribute.cs
- SqlDataSourceConnectionPanel.cs
- path.cs
- columnmapkeybuilder.cs
- ApplicationBuildProvider.cs
- ObjectDataSourceWizardForm.cs
- DateTimeParse.cs
- AssociationSetMetadata.cs
- HttpResponseWrapper.cs
- TcpDuplicateContext.cs
- WebBrowsableAttribute.cs
- WebPartTransformer.cs
- BamlRecords.cs
- StsCommunicationException.cs
- _IPv4Address.cs
- GenericUriParser.cs
- serverconfig.cs
- InkCanvas.cs
- DescendentsWalker.cs
- SvcMapFileSerializer.cs
- BufferAllocator.cs
- IDispatchConstantAttribute.cs
- NotSupportedException.cs
- TransformPattern.cs
- DesignerObjectListAdapter.cs
- CompilerErrorCollection.cs
- WebEventCodes.cs
- CompareValidator.cs
- HttpRuntimeSection.cs
- NumericPagerField.cs
- CircleEase.cs
- OleDbStruct.cs
- ProcessHost.cs
- SupportingTokenChannel.cs
- ChangeNode.cs
- FormatSettings.cs
- BamlLocalizer.cs
- AutomationIdentifier.cs
- PopOutPanel.cs
- HwndHost.cs
- StrictAndMessageFilter.cs
- DataGridViewSelectedColumnCollection.cs
- ColorIndependentAnimationStorage.cs
- DeferrableContentConverter.cs
- SmiXetterAccessMap.cs
- OdbcTransaction.cs
- ServerProtocol.cs
- FontInfo.cs
- SizeAnimationUsingKeyFrames.cs
- BamlWriter.cs
- AddInDeploymentState.cs
- PersonalizationStateInfo.cs
- CounterCreationDataCollection.cs
- MappingSource.cs
- EntityDataSourceDesigner.cs
- Decorator.cs
- NegotiationTokenAuthenticatorState.cs
- URLString.cs
- XPathCompileException.cs
- KeyedCollection.cs
- OleDbEnumerator.cs
- JsonGlobals.cs
- Image.cs
- HttpStreamXmlDictionaryWriter.cs
- DrawingVisual.cs
- MatrixConverter.cs
- RC2.cs
- NativeRightsManagementAPIsStructures.cs
- FixedSOMContainer.cs
- TextElementEditingBehaviorAttribute.cs
- AsyncDataRequest.cs
- ShellProvider.cs
- ReadOnlyHierarchicalDataSource.cs
- SizeAnimationBase.cs
- RawTextInputReport.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ScrollViewer.cs
- NativeObjectSecurity.cs
- RequestDescription.cs
- ChangesetResponse.cs
- StorageEntityTypeMapping.cs
- SamlAuthorityBinding.cs
- RegexWorker.cs
- PaginationProgressEventArgs.cs
- ConfigXmlElement.cs
- LinkDescriptor.cs