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
- SmtpCommands.cs
- IdleTimeoutMonitor.cs
- XamlRtfConverter.cs
- followingsibling.cs
- SpeechEvent.cs
- Crc32.cs
- MsmqTransportSecurity.cs
- PauseStoryboard.cs
- DelayedRegex.cs
- ToolBarButton.cs
- Int32.cs
- TabControlCancelEvent.cs
- CodeTypeDeclarationCollection.cs
- CodeGen.cs
- SimplePropertyEntry.cs
- AggregateNode.cs
- ComplexLine.cs
- httpserverutility.cs
- Geometry.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EntityDataReader.cs
- LocalFileSettingsProvider.cs
- VoiceObjectToken.cs
- SignerInfo.cs
- Graphics.cs
- _HelperAsyncResults.cs
- FontSizeConverter.cs
- ByteStream.cs
- WorkflowRequestContext.cs
- RepeaterItemEventArgs.cs
- CorrelationTokenTypeConvertor.cs
- x509store.cs
- QuaternionRotation3D.cs
- UserControlParser.cs
- RelationshipFixer.cs
- _PooledStream.cs
- SendMailErrorEventArgs.cs
- NativeMethods.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlnsDictionary.cs
- BaseValidator.cs
- DrawingCollection.cs
- StylusPointPropertyId.cs
- ToolstripProfessionalRenderer.cs
- InstanceCollisionException.cs
- CanonicalFontFamilyReference.cs
- RTLAwareMessageBox.cs
- InputDevice.cs
- WinOEToolBoxItem.cs
- XMLSchema.cs
- ToolStripProgressBar.cs
- HuffmanTree.cs
- CompiledAction.cs
- XpsException.cs
- DataGridBoundColumn.cs
- SeverityFilter.cs
- DataTemplateKey.cs
- XmlDataDocument.cs
- CharacterHit.cs
- SafeCryptoHandles.cs
- SafeBitVector32.cs
- SkewTransform.cs
- Rect.cs
- WebBrowser.cs
- CompiledQueryCacheEntry.cs
- PictureBoxDesigner.cs
- SyncMethodInvoker.cs
- SyndicationItem.cs
- LayoutTable.cs
- RoleServiceManager.cs
- TransformerInfoCollection.cs
- CodeIterationStatement.cs
- QuaternionConverter.cs
- CombinedGeometry.cs
- RawStylusSystemGestureInputReport.cs
- MiniLockedBorderGlyph.cs
- EntitySqlQueryBuilder.cs
- ExecutionEngineException.cs
- Matrix3D.cs
- AsymmetricKeyExchangeFormatter.cs
- LinqDataSourceContextEventArgs.cs
- EpmHelper.cs
- CircleHotSpot.cs
- AddInContractAttribute.cs
- ScrollBarAutomationPeer.cs
- ControlPropertyNameConverter.cs
- EventMappingSettings.cs
- AddInBase.cs
- BmpBitmapDecoder.cs
- HashSetEqualityComparer.cs
- CodeTypeMemberCollection.cs
- RelationalExpressions.cs
- XmlDocumentType.cs
- X509PeerCertificateAuthenticationElement.cs
- SQLInt64.cs
- lengthconverter.cs
- LineServices.cs
- xml.cs
- NestPullup.cs