Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HttpCapabilitiesSectionHandler.cs
- DataRow.cs
- SpeechRecognizer.cs
- SHA1CryptoServiceProvider.cs
- EmptyElement.cs
- View.cs
- SubtreeProcessor.cs
- ServiceBehaviorAttribute.cs
- UntrustedRecipientException.cs
- ListViewInsertionMark.cs
- TraceUtility.cs
- ClientScriptManager.cs
- Literal.cs
- PropertyFilterAttribute.cs
- ContainerControl.cs
- PrePrepareMethodAttribute.cs
- RuleInfoComparer.cs
- ResourceSet.cs
- MessageSecurityException.cs
- ObjectConverter.cs
- TryCatch.cs
- ClickablePoint.cs
- ADMembershipProvider.cs
- Odbc32.cs
- GlobalEventManager.cs
- CompiledELinqQueryState.cs
- Rect3D.cs
- CombinedGeometry.cs
- TextClipboardData.cs
- Operators.cs
- ILGenerator.cs
- CriticalFinalizerObject.cs
- MostlySingletonList.cs
- DodSequenceMerge.cs
- IpcClientChannel.cs
- OleDbReferenceCollection.cs
- ProxyHelper.cs
- ImagingCache.cs
- TextRangeEditLists.cs
- RadioButtonRenderer.cs
- PageRanges.cs
- WebCategoryAttribute.cs
- WebPartEditorApplyVerb.cs
- DataKey.cs
- BrowserDefinitionCollection.cs
- PresentationUIStyleResources.cs
- SslStreamSecurityElement.cs
- basevalidator.cs
- DnsEndpointIdentity.cs
- SurrogateEncoder.cs
- ClientSession.cs
- DriveInfo.cs
- BaseParagraph.cs
- CmsInterop.cs
- TextEditorTables.cs
- FileStream.cs
- UdpDiscoveryEndpointProvider.cs
- SafeFindHandle.cs
- SystemIPAddressInformation.cs
- TextAction.cs
- SafeRightsManagementHandle.cs
- CallbackValidator.cs
- AVElementHelper.cs
- CacheRequest.cs
- IFlowDocumentViewer.cs
- BitmapEffectDrawing.cs
- RegexBoyerMoore.cs
- XsltSettings.cs
- DataRecordObjectView.cs
- SettingsAttributes.cs
- ConnectionConsumerAttribute.cs
- FullTextBreakpoint.cs
- ItemsPresenter.cs
- CounterSampleCalculator.cs
- ProtocolsSection.cs
- Bind.cs
- HtmlSelect.cs
- MenuItemStyle.cs
- StylusDevice.cs
- BatchParser.cs
- ProtocolsSection.cs
- References.cs
- FacetValueContainer.cs
- ScrollableControl.cs
- RandomNumberGenerator.cs
- DiscoveryClientDuplexChannel.cs
- BookmarkScopeInfo.cs
- FunctionImportElement.cs
- WindowsListViewItemStartMenu.cs
- ElementHostAutomationPeer.cs
- ItemsPresenter.cs
- OleDbParameter.cs
- OracleDataReader.cs
- SecUtil.cs
- ListBox.cs
- Byte.cs
- ScrollChangedEventArgs.cs
- Quad.cs
- CoTaskMemSafeHandle.cs
- LambdaCompiler.cs