Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / CachingHintValidation.cs / 1305600 / 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
- PointCollectionValueSerializer.cs
- ConfigXmlCDataSection.cs
- OleDbReferenceCollection.cs
- TextRange.cs
- DrawingCollection.cs
- SingleObjectCollection.cs
- Transform3DGroup.cs
- QilFactory.cs
- TimeoutHelper.cs
- CommandLineParser.cs
- CodeIdentifier.cs
- ButtonRenderer.cs
- DelegateBodyWriter.cs
- BrowserDefinition.cs
- FilteredDataSetHelper.cs
- XmlUtil.cs
- SubclassTypeValidator.cs
- ErrorFormatterPage.cs
- unsafenativemethodstextservices.cs
- Query.cs
- EncoderReplacementFallback.cs
- XmlText.cs
- DragEvent.cs
- PointHitTestParameters.cs
- CookieProtection.cs
- XmlnsPrefixAttribute.cs
- VarRefManager.cs
- GetFileNameResult.cs
- BamlVersionHeader.cs
- FixedSOMSemanticBox.cs
- precedingsibling.cs
- Transactions.cs
- KeyBinding.cs
- PreProcessor.cs
- Vector.cs
- CharacterBuffer.cs
- WindowsSolidBrush.cs
- ReferencedCollectionType.cs
- Image.cs
- AssociatedControlConverter.cs
- ScalarType.cs
- GridViewRowPresenterBase.cs
- MetadataWorkspace.cs
- SQLResource.cs
- GeneralTransform3D.cs
- PropertyManager.cs
- StringCollection.cs
- BinaryWriter.cs
- EndOfStreamException.cs
- SimpleRecyclingCache.cs
- AssemblyFilter.cs
- ZoneButton.cs
- WebPartDisplayModeEventArgs.cs
- ReadWriteSpinLock.cs
- EntityDataSourceValidationException.cs
- DataBindEngine.cs
- FillBehavior.cs
- ItemMap.cs
- InstancePersistenceEvent.cs
- DateTimeOffsetStorage.cs
- CodeTypeMemberCollection.cs
- Effect.cs
- ComponentManagerBroker.cs
- BindingExpressionBase.cs
- ToolbarAUtomationPeer.cs
- SoapCodeExporter.cs
- DbXmlEnabledProviderManifest.cs
- TableRowCollection.cs
- ToReply.cs
- WebServiceParameterData.cs
- SqlDataSourceCache.cs
- CalendarDateChangedEventArgs.cs
- PropertyItemInternal.cs
- TextParagraphProperties.cs
- xmlformatgeneratorstatics.cs
- GeneralTransform3D.cs
- SqlMetaData.cs
- ObjectDataSourceDisposingEventArgs.cs
- TextBoxBase.cs
- XmlElementAttribute.cs
- DefaultObjectMappingItemCollection.cs
- DLinqColumnProvider.cs
- EnvelopedPkcs7.cs
- ToolStripSplitStackLayout.cs
- PropertyRef.cs
- BuildProvidersCompiler.cs
- SqlDataSourceCustomCommandPanel.cs
- XsdBuildProvider.cs
- RoleGroup.cs
- XPathExpr.cs
- CompilationSection.cs
- RoutingBehavior.cs
- TextParagraph.cs
- ByteStreamBufferedMessageData.cs
- TrailingSpaceComparer.cs
- LocatorBase.cs
- DataGridHyperlinkColumn.cs
- ChildrenQuery.cs
- CngUIPolicy.cs
- WindowsScroll.cs