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
- RuntimeCompatibilityAttribute.cs
- RankException.cs
- milrender.cs
- COMException.cs
- ValueTable.cs
- CodeGen.cs
- CompositeTypefaceMetrics.cs
- SHA384Managed.cs
- PartialCachingControl.cs
- FileSystemInfo.cs
- EastAsianLunisolarCalendar.cs
- TemplateField.cs
- InterleavedZipPartStream.cs
- TextRangeAdaptor.cs
- HtmlElementEventArgs.cs
- ApplyHostConfigurationBehavior.cs
- HtmlHistory.cs
- WmlCalendarAdapter.cs
- BooleanStorage.cs
- CommandManager.cs
- SmiMetaDataProperty.cs
- ExternalCalls.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AttributeCollection.cs
- PointF.cs
- CalendarDay.cs
- TrackingStringDictionary.cs
- COM2AboutBoxPropertyDescriptor.cs
- Types.cs
- Vars.cs
- DataGridViewSelectedColumnCollection.cs
- RefExpr.cs
- FixedSOMLineCollection.cs
- FunctionQuery.cs
- RequestTimeoutManager.cs
- TextContainerChangedEventArgs.cs
- TextEndOfSegment.cs
- XmlNamespaceMapping.cs
- PanelStyle.cs
- SmiRequestExecutor.cs
- ToolStripDropDownItem.cs
- TrustLevel.cs
- ValidationPropertyAttribute.cs
- ResourceSet.cs
- AmbientValueAttribute.cs
- ClientCredentials.cs
- ErrorFormatter.cs
- SHA256Managed.cs
- UserMapPath.cs
- ContextMenu.cs
- Volatile.cs
- SapiGrammar.cs
- RegionInfo.cs
- SerialPort.cs
- InputMethodStateTypeInfo.cs
- Material.cs
- Byte.cs
- ToolStripDropTargetManager.cs
- Rotation3D.cs
- CurrentChangedEventManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Window.cs
- MetadataCache.cs
- Transform3DGroup.cs
- ComplusTypeValidator.cs
- SelectedGridItemChangedEvent.cs
- TypeExtension.cs
- StylusCaptureWithinProperty.cs
- ResourcesBuildProvider.cs
- ReadOnlyCollection.cs
- RenameRuleObjectDialog.Designer.cs
- Stream.cs
- Rotation3D.cs
- GenerateScriptTypeAttribute.cs
- LZCodec.cs
- ViewDesigner.cs
- LambdaCompiler.Binary.cs
- DataServiceQuery.cs
- InsufficientMemoryException.cs
- XamlTemplateSerializer.cs
- ListenUriMode.cs
- ProgressBar.cs
- HtmlObjectListAdapter.cs
- Selection.cs
- PolicyManager.cs
- SlipBehavior.cs
- PersonalizablePropertyEntry.cs
- QuaternionAnimationUsingKeyFrames.cs
- RouteUrlExpressionBuilder.cs
- DataGridViewCellMouseEventArgs.cs
- EventEntry.cs
- ReadOnlyActivityGlyph.cs
- NamespaceQuery.cs
- AttributeEmitter.cs
- UrlMappingCollection.cs
- Table.cs
- ResourceContainerWrapper.cs
- HashSetEqualityComparer.cs
- DynamicResourceExtensionConverter.cs
- AuthenticationService.cs