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
- CacheChildrenQuery.cs
- ManipulationInertiaStartingEventArgs.cs
- CodeTypeDelegate.cs
- OperandQuery.cs
- CodePrimitiveExpression.cs
- PageHandlerFactory.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- HeaderUtility.cs
- QueryReaderSettings.cs
- XPathParser.cs
- HtmlInputSubmit.cs
- SliderAutomationPeer.cs
- ComplexTypeEmitter.cs
- InheritanceContextChangedEventManager.cs
- PerformanceCounterPermission.cs
- BookmarkList.cs
- FileUpload.cs
- QueryOutputWriter.cs
- XmlILConstructAnalyzer.cs
- HostProtectionException.cs
- EventWaitHandle.cs
- MaterialCollection.cs
- SecurityRuntime.cs
- WebPartMovingEventArgs.cs
- DiscoveryClientDuplexChannel.cs
- TreeNodeStyleCollectionEditor.cs
- EditBehavior.cs
- Cursors.cs
- PlatformNotSupportedException.cs
- complextypematerializer.cs
- AnchoredBlock.cs
- CodePropertyReferenceExpression.cs
- ExpandoClass.cs
- TreePrinter.cs
- RemoteWebConfigurationHostServer.cs
- DropSource.cs
- SplitterDesigner.cs
- Transform3DGroup.cs
- OdbcTransaction.cs
- WaitHandleCannotBeOpenedException.cs
- User.cs
- KoreanCalendar.cs
- Rect3DValueSerializer.cs
- GAC.cs
- InstanceOwner.cs
- SchemaImporterExtensionsSection.cs
- TaiwanLunisolarCalendar.cs
- IItemContainerGenerator.cs
- RequestContext.cs
- ConfigurationException.cs
- BooleanFunctions.cs
- SafeLibraryHandle.cs
- mediapermission.cs
- ListBoxItem.cs
- TemplateControl.cs
- CqlErrorHelper.cs
- ActivityTrace.cs
- ContainerUIElement3D.cs
- Rectangle.cs
- UIElementIsland.cs
- CacheAxisQuery.cs
- __Filters.cs
- ResourceDescriptionAttribute.cs
- CalloutQueueItem.cs
- ClientUrlResolverWrapper.cs
- LongCountAggregationOperator.cs
- WebPartPersonalization.cs
- SEHException.cs
- VerificationAttribute.cs
- HtmlInputFile.cs
- ControlDesigner.cs
- MessageQueueAccessControlEntry.cs
- DocumentPageView.cs
- designeractionlistschangedeventargs.cs
- CodeExpressionRuleDeclaration.cs
- InvokeBinder.cs
- XmlJsonWriter.cs
- FixedSOMTableCell.cs
- HandleTable.cs
- SmiEventStream.cs
- Attributes.cs
- ImageMapEventArgs.cs
- ListComponentEditorPage.cs
- SmtpAuthenticationManager.cs
- AudioFormatConverter.cs
- TypeReference.cs
- NumberFormatter.cs
- SmiGettersStream.cs
- sqlcontext.cs
- Solver.cs
- ListItemViewAttribute.cs
- BaseCollection.cs
- LicFileLicenseProvider.cs
- xmlglyphRunInfo.cs
- ToolStripOverflow.cs
- ListViewGroup.cs
- ImageKeyConverter.cs
- XmlSchema.cs
- FontSizeConverter.cs
- ContextConfiguration.cs