Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / CachingHintValidation.cs / 1 / CachingHintValidation.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. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #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 { 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 IsCachingHintValid(object valueObject) { CachingHint value = (CachingHint) valueObject; return (value == CachingHint.Unspecified) || (value == CachingHint.Cache); } } } // 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. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #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 { 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 IsCachingHintValid(object valueObject) { CachingHint value = (CachingHint) valueObject; return (value == CachingHint.Unspecified) || (value == CachingHint.Cache); } } } // 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
- InputReport.cs
- Rect.cs
- Wildcard.cs
- TraceHandlerErrorFormatter.cs
- MarkupWriter.cs
- ObjectDataSourceFilteringEventArgs.cs
- EditorZoneBase.cs
- ReadOnlyMetadataCollection.cs
- SqlVersion.cs
- ApplicationSecurityManager.cs
- SimpleType.cs
- CompressStream.cs
- AuthenticationException.cs
- ToolStripItemCollection.cs
- SqlPersonalizationProvider.cs
- UnsafeNativeMethods.cs
- NoResizeSelectionBorderGlyph.cs
- ProgramPublisher.cs
- XPathAncestorIterator.cs
- DataFieldCollectionEditor.cs
- ArgIterator.cs
- DesignerAttribute.cs
- Page.cs
- MasterPage.cs
- XmlHelper.cs
- Cloud.cs
- LiteralControl.cs
- ClientTarget.cs
- StreamSecurityUpgradeAcceptorBase.cs
- PropertyCondition.cs
- SqlCommandBuilder.cs
- TextSchema.cs
- CustomGrammar.cs
- ConnectionsZoneDesigner.cs
- StringUtil.cs
- InplaceBitmapMetadataWriter.cs
- ContainerParaClient.cs
- WmlLiteralTextAdapter.cs
- MultiAsyncResult.cs
- SpinLock.cs
- ImageListUtils.cs
- WebBrowsableAttribute.cs
- ILGenerator.cs
- DashStyle.cs
- DataGridViewCellFormattingEventArgs.cs
- coordinator.cs
- HtmlEmptyTagControlBuilder.cs
- GridViewRowCollection.cs
- ExternalCalls.cs
- HwndTarget.cs
- UrlMappingsModule.cs
- HtmlControlDesigner.cs
- PersonalizationAdministration.cs
- DocumentViewerConstants.cs
- HelpInfo.cs
- DocumentsTrace.cs
- ApplicationSecurityInfo.cs
- Underline.cs
- TemplatedAdorner.cs
- PageFunction.cs
- templategroup.cs
- DetectEofStream.cs
- BindableTemplateBuilder.cs
- SubclassTypeValidator.cs
- EndEvent.cs
- SmiRequestExecutor.cs
- TrackingMemoryStreamFactory.cs
- PixelFormat.cs
- TablePatternIdentifiers.cs
- SafePEFileHandle.cs
- PageEventArgs.cs
- XmlHelper.cs
- BindingMemberInfo.cs
- CodeComment.cs
- TreeNode.cs
- CompilerError.cs
- NavigationFailedEventArgs.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ParameterCollection.cs
- DelayDesigner.cs
- FixedHighlight.cs
- XmlWrappingReader.cs
- SQLMembershipProvider.cs
- MonitorWrapper.cs
- MsmqHostedTransportConfiguration.cs
- TextFormatterHost.cs
- LayoutEvent.cs
- TableRow.cs
- WsdlBuildProvider.cs
- SystemIPGlobalStatistics.cs
- MethodBuilderInstantiation.cs
- HtmlMeta.cs
- TextTreeFixupNode.cs
- TogglePattern.cs
- FormsAuthenticationEventArgs.cs
- AmbientValueAttribute.cs
- PingReply.cs
- Attributes.cs
- SerialPort.cs
- EntityDataSourceSelectingEventArgs.cs