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
- Vector3DCollection.cs
- HostProtectionException.cs
- DataListItemEventArgs.cs
- UIPermission.cs
- MSAAEventDispatcher.cs
- FormsAuthenticationUser.cs
- CollectionConverter.cs
- RegularExpressionValidator.cs
- XmlEnumAttribute.cs
- cookiecontainer.cs
- X509ClientCertificateAuthentication.cs
- LateBoundBitmapDecoder.cs
- StatusStrip.cs
- DataListItemCollection.cs
- ItemsPanelTemplate.cs
- ListenerChannelContext.cs
- XmlWrappingReader.cs
- ListViewItem.cs
- DataGridViewTopLeftHeaderCell.cs
- VariableDesigner.xaml.cs
- MultiSelectRootGridEntry.cs
- SoapIncludeAttribute.cs
- GridViewRowCollection.cs
- Currency.cs
- ControllableStoryboardAction.cs
- DynamicValidator.cs
- ZipIOLocalFileDataDescriptor.cs
- RealProxy.cs
- MdiWindowListStrip.cs
- NullReferenceException.cs
- SqlRecordBuffer.cs
- StorageInfo.cs
- DispatcherObject.cs
- InstanceData.cs
- ReplyChannelBinder.cs
- DependencyPropertyAttribute.cs
- InvalidateEvent.cs
- TableCellCollection.cs
- PointAnimationBase.cs
- WebPartCatalogCloseVerb.cs
- Form.cs
- SQLDoubleStorage.cs
- storepermissionattribute.cs
- MemberMaps.cs
- InvokePattern.cs
- EntityDataSourceContextCreatingEventArgs.cs
- MenuItemBindingCollection.cs
- ObjectToIdCache.cs
- Component.cs
- XmlName.cs
- QuadraticBezierSegment.cs
- ResourcePermissionBase.cs
- RegexCharClass.cs
- ToolStripArrowRenderEventArgs.cs
- IndependentAnimationStorage.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- LeaseManager.cs
- PreApplicationStartMethodAttribute.cs
- ListSortDescription.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SectionVisual.cs
- WindowsListViewSubItem.cs
- TraceSection.cs
- TypeElementCollection.cs
- ModelPerspective.cs
- AsymmetricAlgorithm.cs
- ReachBasicContext.cs
- TransformPatternIdentifiers.cs
- DataGridViewComboBoxCell.cs
- OperationInfoBase.cs
- WorkflowApplicationCompletedEventArgs.cs
- PermissionSetEnumerator.cs
- RegexWriter.cs
- SoapRpcMethodAttribute.cs
- RayHitTestParameters.cs
- KnownTypesProvider.cs
- MsmqDecodeHelper.cs
- UICuesEvent.cs
- DataGridViewCellConverter.cs
- ContentIterators.cs
- Panel.cs
- GlyphCollection.cs
- PassportAuthenticationModule.cs
- Literal.cs
- CompatibleComparer.cs
- ImageAttributes.cs
- DrawingState.cs
- MaterialGroup.cs
- followingquery.cs
- DataGridViewRowConverter.cs
- MemberAssignmentAnalysis.cs
- PseudoWebRequest.cs
- SettingsPropertyWrongTypeException.cs
- SecurityCriticalDataForSet.cs
- FocusTracker.cs
- SerializerDescriptor.cs
- RemoveStoryboard.cs
- ReferencedAssembly.cs
- SelectionPattern.cs
- httpstaticobjectscollection.cs