Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ShaderRenderModeValidation.cs / 1305600 / ShaderRenderModeValidation.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 IsShaderRenderModeValid(object valueObject) { ShaderRenderMode value = (ShaderRenderMode) valueObject; return (value == ShaderRenderMode.Auto) || (value == ShaderRenderMode.SoftwareOnly) || (value == ShaderRenderMode.HardwareOnly); } } } // 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 IsShaderRenderModeValid(object valueObject) { ShaderRenderMode value = (ShaderRenderMode) valueObject; return (value == ShaderRenderMode.Auto) || (value == ShaderRenderMode.SoftwareOnly) || (value == ShaderRenderMode.HardwareOnly); } } } // 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
- TextMetrics.cs
- XmlAtomicValue.cs
- RectangleConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- ApplicationServiceHelper.cs
- MediaPlayer.cs
- PublisherMembershipCondition.cs
- httpapplicationstate.cs
- CookieHandler.cs
- clipboard.cs
- AsyncPostBackErrorEventArgs.cs
- CodeDOMProvider.cs
- XPathPatternBuilder.cs
- CompilerResults.cs
- ArgumentNullException.cs
- Tuple.cs
- _ConnectOverlappedAsyncResult.cs
- ChannelServices.cs
- NodeInfo.cs
- NullableDoubleAverageAggregationOperator.cs
- PrintDialogException.cs
- ToolStripDesigner.cs
- CachedBitmap.cs
- XmlObjectSerializerReadContextComplexJson.cs
- PreloadedPackages.cs
- XmlUtil.cs
- WebProxyScriptElement.cs
- TransmissionStrategy.cs
- TextDecorationCollection.cs
- FormattedTextSymbols.cs
- AncillaryOps.cs
- QueryHandler.cs
- MouseDevice.cs
- DataFormats.cs
- OrderedDictionary.cs
- MatrixKeyFrameCollection.cs
- SqlBuilder.cs
- OdbcException.cs
- GridViewRowEventArgs.cs
- RuntimeConfigurationRecord.cs
- PagerSettings.cs
- Polyline.cs
- WebPartConnectionCollection.cs
- TableAdapterManagerNameHandler.cs
- CodeIterationStatement.cs
- StrokeRenderer.cs
- ProgressPage.cs
- HijriCalendar.cs
- SamlSubject.cs
- RetrieveVirtualItemEventArgs.cs
- SemanticBasicElement.cs
- DataGridViewCellPaintingEventArgs.cs
- NodeFunctions.cs
- MultilineStringConverter.cs
- CollectionViewSource.cs
- Content.cs
- OptimizedTemplateContentHelper.cs
- Pens.cs
- DynamicActivity.cs
- CryptoHandle.cs
- InkPresenter.cs
- StyleXamlParser.cs
- ContextMenu.cs
- ColorDialog.cs
- ComponentEvent.cs
- WindowsFormsSectionHandler.cs
- Cursor.cs
- RequestContextBase.cs
- FormsAuthenticationEventArgs.cs
- FileVersion.cs
- CollectionDataContract.cs
- ScriptDescriptor.cs
- ListViewItemEventArgs.cs
- RtType.cs
- DataBindingList.cs
- IERequestCache.cs
- SmiTypedGetterSetter.cs
- keycontainerpermission.cs
- RegexGroupCollection.cs
- NumberSubstitution.cs
- IItemProperties.cs
- XmlSchemaDocumentation.cs
- _TimerThread.cs
- RemoveStoryboard.cs
- StorageMappingFragment.cs
- EnumBuilder.cs
- SessionEndingCancelEventArgs.cs
- PackagePartCollection.cs
- WindowsFormsLinkLabel.cs
- Mapping.cs
- AdornerLayer.cs
- HtmlButton.cs
- QueueProcessor.cs
- ControlPropertyNameConverter.cs
- DetailsViewModeEventArgs.cs
- UnicodeEncoding.cs
- SizeConverter.cs
- DesignerActionHeaderItem.cs
- ServiceParser.cs
- Opcode.cs