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
- OdbcConnectionFactory.cs
- ActivityLocationReferenceEnvironment.cs
- AutomationProperties.cs
- MethodCallExpression.cs
- ImageAutomationPeer.cs
- HtmlButton.cs
- DBConcurrencyException.cs
- NavigationFailedEventArgs.cs
- MenuBase.cs
- TextEditorThreadLocalStore.cs
- CollectionBase.cs
- StringConcat.cs
- WinInetCache.cs
- ButtonChrome.cs
- DataGridPagerStyle.cs
- FixedTextContainer.cs
- XmlSerializationReader.cs
- assemblycache.cs
- DateTimeUtil.cs
- DeferrableContent.cs
- TextFormatterContext.cs
- StringWriter.cs
- ListControlBoundActionList.cs
- PrinterResolution.cs
- InheritanceContextChangedEventManager.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- OutputCacheProfile.cs
- ListViewItem.cs
- EnumValidator.cs
- SubpageParagraph.cs
- HwndSourceParameters.cs
- ScriptMethodAttribute.cs
- DeobfuscatingStream.cs
- ContainerTracking.cs
- ParamArrayAttribute.cs
- RegisteredDisposeScript.cs
- HandlerFactoryWrapper.cs
- ResourceDescriptionAttribute.cs
- ScriptRegistrationManager.cs
- RSAOAEPKeyExchangeFormatter.cs
- XmlSchemaType.cs
- NotSupportedException.cs
- SqlInternalConnectionTds.cs
- DifferencingCollection.cs
- ListChangedEventArgs.cs
- Quad.cs
- AttributeSetAction.cs
- MetadataFile.cs
- ThicknessAnimationUsingKeyFrames.cs
- SafeEventHandle.cs
- RegexStringValidatorAttribute.cs
- ByteConverter.cs
- DataRelationCollection.cs
- Cell.cs
- PaintValueEventArgs.cs
- OutputCacheProfile.cs
- TreeNodeCollectionEditorDialog.cs
- NavigationProperty.cs
- ComboBoxAutomationPeer.cs
- BooleanFacetDescriptionElement.cs
- ProofTokenCryptoHandle.cs
- TypefaceMetricsCache.cs
- SafeRightsManagementQueryHandle.cs
- CheckableControlBaseAdapter.cs
- DataGridViewSelectedRowCollection.cs
- DATA_BLOB.cs
- ConnectionPointCookie.cs
- XmlTextReaderImplHelpers.cs
- CalendarDay.cs
- MediaElementAutomationPeer.cs
- ArraySortHelper.cs
- DataBoundControlHelper.cs
- DBCSCodePageEncoding.cs
- relpropertyhelper.cs
- ClientRoleProvider.cs
- DSASignatureDeformatter.cs
- LoginDesigner.cs
- SapiInterop.cs
- InteropBitmapSource.cs
- Converter.cs
- DbConnectionPoolOptions.cs
- DrawTreeNodeEventArgs.cs
- AdPostCacheSubstitution.cs
- SQLString.cs
- SoapAttributeAttribute.cs
- KeyInterop.cs
- ApplicationProxyInternal.cs
- SecurityAlgorithmSuiteConverter.cs
- TableLayoutPanelDesigner.cs
- MenuItemCollectionEditor.cs
- TextTabProperties.cs
- OleDbStruct.cs
- FileDialog_Vista.cs
- XamlParser.cs
- FieldToken.cs
- UnsafePeerToPeerMethods.cs
- EffectiveValueEntry.cs
- LineSegment.cs
- Utils.cs
- BaseCollection.cs