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
- BookmarkTable.cs
- HandleCollector.cs
- DeriveBytes.cs
- CompositeFontParser.cs
- EditorZone.cs
- TaskScheduler.cs
- HttpModulesSection.cs
- DataGridAutomationPeer.cs
- CodeIdentifier.cs
- MouseDevice.cs
- Misc.cs
- ProcessModelInfo.cs
- httpapplicationstate.cs
- UiaCoreProviderApi.cs
- BindingNavigatorDesigner.cs
- AssemblyAssociatedContentFileAttribute.cs
- Matrix3DStack.cs
- SQLSingle.cs
- BasePattern.cs
- XmlCharType.cs
- FontSizeConverter.cs
- SoapServerProtocol.cs
- VideoDrawing.cs
- SoapFault.cs
- PostBackOptions.cs
- SchemaComplexType.cs
- BuildProviderUtils.cs
- Debug.cs
- ImageField.cs
- DetailsViewRow.cs
- SemanticAnalyzer.cs
- GenerateHelper.cs
- UserPersonalizationStateInfo.cs
- UInt32.cs
- HandlerFactoryWrapper.cs
- ProvidersHelper.cs
- WebPartMenu.cs
- AnnotationService.cs
- IntPtr.cs
- MessageBodyDescription.cs
- MissingMemberException.cs
- NativeMethods.cs
- DragAssistanceManager.cs
- NavigateEvent.cs
- InvokeSchedule.cs
- MessageAction.cs
- HostingPreferredMapPath.cs
- ProfilePropertySettingsCollection.cs
- MediaPlayerState.cs
- BitHelper.cs
- DataGridHelper.cs
- CodeDesigner.cs
- MultiAsyncResult.cs
- File.cs
- FixedLineResult.cs
- DotExpr.cs
- TextBoxBase.cs
- TextEditorCharacters.cs
- DataBoundControlActionList.cs
- UnsafeNativeMethods.cs
- NavigationFailedEventArgs.cs
- RegularExpressionValidator.cs
- GcHandle.cs
- AssemblyBuilder.cs
- MsmqIntegrationSecurityMode.cs
- RowToParametersTransformer.cs
- CompilerState.cs
- _ConnectionGroup.cs
- reliableinputsessionchannel.cs
- EntitySqlQueryCacheKey.cs
- WebPartManager.cs
- StoreContentChangedEventArgs.cs
- Thread.cs
- XmlWrappingReader.cs
- ExtendedPropertyInfo.cs
- TypeSystem.cs
- BoundPropertyEntry.cs
- ContentPlaceHolderDesigner.cs
- SqlDataSourceCommandEventArgs.cs
- RepeatButton.cs
- CommonDialog.cs
- DocumentPageHost.cs
- DBCSCodePageEncoding.cs
- DirectionalLight.cs
- WebPartTransformerCollection.cs
- MetadataCollection.cs
- UnmanagedMemoryStream.cs
- SourceFilter.cs
- ActivityFunc.cs
- ByteStreamGeometryContext.cs
- CollectionChangedEventManager.cs
- NameScope.cs
- ClientSponsor.cs
- XmlRawWriter.cs
- OpenTypeLayout.cs
- MissingMethodException.cs
- Barrier.cs
- GradientStop.cs
- StructuredTypeEmitter.cs
- UnsafeNativeMethods.cs