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
- EventLogPermissionEntry.cs
- LassoHelper.cs
- MatrixAnimationBase.cs
- SplitterEvent.cs
- VectorConverter.cs
- MDIControlStrip.cs
- SQLRoleProvider.cs
- XmlILOptimizerVisitor.cs
- PolicyException.cs
- CollectionViewProxy.cs
- FileUtil.cs
- DiagnosticTraceSource.cs
- TCPListener.cs
- TextElement.cs
- TextViewBase.cs
- SchemaCollectionPreprocessor.cs
- CategoryGridEntry.cs
- transactioncontext.cs
- Double.cs
- BinaryNode.cs
- DataPagerFieldItem.cs
- DisposableCollectionWrapper.cs
- OleDbCommand.cs
- DataBindingHandlerAttribute.cs
- OleDbConnectionFactory.cs
- RemoveStoryboard.cs
- ReflectEventDescriptor.cs
- validation.cs
- PrefixQName.cs
- ContextStaticAttribute.cs
- TokenBasedSetEnumerator.cs
- XmlCharType.cs
- MenuStrip.cs
- CustomSignedXml.cs
- HtmlEmptyTagControlBuilder.cs
- ZipIOLocalFileHeader.cs
- OleDbSchemaGuid.cs
- ChangeConflicts.cs
- BitmapVisualManager.cs
- _LoggingObject.cs
- milrender.cs
- Pair.cs
- MediaEntryAttribute.cs
- DataGridToolTip.cs
- XmlFileEditor.cs
- ClientType.cs
- StoryFragments.cs
- ActionFrame.cs
- WebPartsPersonalizationAuthorization.cs
- IList.cs
- ButtonBaseAutomationPeer.cs
- TextTabProperties.cs
- PipeSecurity.cs
- DeferredReference.cs
- XmlSiteMapProvider.cs
- FamilyCollection.cs
- APCustomTypeDescriptor.cs
- DeadLetterQueue.cs
- ExpressionBinding.cs
- SolidColorBrush.cs
- filewebresponse.cs
- XamlToRtfParser.cs
- Knowncolors.cs
- WebBrowserProgressChangedEventHandler.cs
- MaskedTextBox.cs
- unsafeIndexingFilterStream.cs
- Light.cs
- IndicFontClient.cs
- HtmlSelectionListAdapter.cs
- RegexFCD.cs
- MsmqProcessProtocolHandler.cs
- FlowDocumentView.cs
- XmlQuerySequence.cs
- OrderPreservingMergeHelper.cs
- SoapEnumAttribute.cs
- GatewayDefinition.cs
- DrawingState.cs
- ScaleTransform3D.cs
- UnionExpr.cs
- QueryExpr.cs
- UserPreferenceChangingEventArgs.cs
- ButtonBase.cs
- GenericParameterDataContract.cs
- SQLCharsStorage.cs
- WindowsAuthenticationModule.cs
- ValueSerializerAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- BinaryReader.cs
- WSDualHttpBindingElement.cs
- Bidi.cs
- PhonemeEventArgs.cs
- TypeInitializationException.cs
- NavigateEvent.cs
- SerializationInfo.cs
- NativeMethods.cs
- CheckBoxPopupAdapter.cs
- TextComposition.cs
- FileDialogCustomPlace.cs
- SqlDataSource.cs
- Double.cs