Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / ShaderRenderModeValidation.cs / 1 / 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
- Registry.cs
- HyperLinkField.cs
- TypefaceCollection.cs
- RefExpr.cs
- WorkerRequest.cs
- DbException.cs
- CompilationPass2Task.cs
- DataGridRelationshipRow.cs
- StretchValidation.cs
- HtmlLink.cs
- RecordsAffectedEventArgs.cs
- ScriptBehaviorDescriptor.cs
- XsltException.cs
- InputReport.cs
- StrongNameSignatureInformation.cs
- sqlinternaltransaction.cs
- UriTemplateVariableQueryValue.cs
- SchemeSettingElementCollection.cs
- PreProcessInputEventArgs.cs
- ImageSourceValueSerializer.cs
- BamlVersionHeader.cs
- SinglePageViewer.cs
- AbandonedMutexException.cs
- CodeTypeParameterCollection.cs
- RequestBringIntoViewEventArgs.cs
- ToolStripPanelRow.cs
- DecoderNLS.cs
- EntityDesignerDataSourceView.cs
- ConditionBrowserDialog.cs
- DrawingCollection.cs
- HuffmanTree.cs
- PageRequestManager.cs
- KeyValuePair.cs
- ContentControl.cs
- TraceUtility.cs
- HttpException.cs
- DataContractJsonSerializerOperationFormatter.cs
- MbpInfo.cs
- HybridObjectCache.cs
- TogglePattern.cs
- MLangCodePageEncoding.cs
- LogLogRecord.cs
- URLMembershipCondition.cs
- AttachInfo.cs
- UnauthorizedAccessException.cs
- RelationshipEndCollection.cs
- ObjRef.cs
- Descriptor.cs
- RTLAwareMessageBox.cs
- IsolatedStorageFile.cs
- Line.cs
- OleDbFactory.cs
- ListViewGroupItemCollection.cs
- SecurityContext.cs
- XmlnsCache.cs
- CompilationRelaxations.cs
- DirectoryObjectSecurity.cs
- GuidConverter.cs
- RightsManagementEncryptionTransform.cs
- EntitySqlException.cs
- OleDbConnectionInternal.cs
- TextWriterTraceListener.cs
- WebPartsSection.cs
- Char.cs
- FormsAuthenticationTicket.cs
- XAMLParseException.cs
- CqlParser.cs
- MediaElementAutomationPeer.cs
- DomainUpDown.cs
- log.cs
- TimeoutTimer.cs
- RuleProcessor.cs
- MetadataItemEmitter.cs
- AxWrapperGen.cs
- BaseDataListComponentEditor.cs
- Line.cs
- _SafeNetHandles.cs
- ToolStripSplitStackLayout.cs
- RadioButtonPopupAdapter.cs
- TextTreeFixupNode.cs
- TextCollapsingProperties.cs
- Underline.cs
- BamlTreeUpdater.cs
- MetadataSource.cs
- RadioButtonStandardAdapter.cs
- Annotation.cs
- TextBlockAutomationPeer.cs
- CompiledQueryCacheEntry.cs
- BoundColumn.cs
- RayHitTestParameters.cs
- ArgIterator.cs
- ExtendedPropertyInfo.cs
- VectorCollectionValueSerializer.cs
- CopyNamespacesAction.cs
- RTLAwareMessageBox.cs
- XmlBindingWorker.cs
- DbConnectionPoolGroup.cs
- SBCSCodePageEncoding.cs
- CompositionAdorner.cs
- SafeThemeHandle.cs