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
- ItemsControlAutomationPeer.cs
- XmlSchemaAttributeGroupRef.cs
- BitmapInitialize.cs
- BuildProviderAppliesToAttribute.cs
- ConsoleEntryPoint.cs
- MessageQueuePermissionEntry.cs
- TextServicesCompartmentContext.cs
- DPCustomTypeDescriptor.cs
- ContainerUtilities.cs
- HtmlControl.cs
- InteropAutomationProvider.cs
- WeakEventTable.cs
- DataGridSortCommandEventArgs.cs
- DirectionalLight.cs
- InputMethod.cs
- Calendar.cs
- Pair.cs
- WinEventTracker.cs
- SqlCrossApplyToCrossJoin.cs
- IpcManager.cs
- IndependentAnimationStorage.cs
- ComponentResourceKey.cs
- NonParentingControl.cs
- OutputCacheProfile.cs
- ClientFormsIdentity.cs
- smtpconnection.cs
- StylusDownEventArgs.cs
- CommandEventArgs.cs
- PhysicalOps.cs
- SQLDouble.cs
- PasswordRecovery.cs
- SspiNegotiationTokenAuthenticator.cs
- WrappedIUnknown.cs
- TableLayoutCellPaintEventArgs.cs
- DataPagerFieldCollection.cs
- LabelEditEvent.cs
- figurelength.cs
- PerformanceCounter.cs
- Rectangle.cs
- SourceFilter.cs
- WrapperEqualityComparer.cs
- SortedDictionary.cs
- OpenFileDialog.cs
- ProjectionPlan.cs
- PreProcessInputEventArgs.cs
- IndependentAnimationStorage.cs
- _TimerThread.cs
- HwndHostAutomationPeer.cs
- Classification.cs
- _TLSstream.cs
- TypeUtil.cs
- GeneralTransformGroup.cs
- ErrorProvider.cs
- SymLanguageVendor.cs
- HostedAspNetEnvironment.cs
- ImageClickEventArgs.cs
- SmtpException.cs
- RSAProtectedConfigurationProvider.cs
- ToolStripControlHost.cs
- ClientApiGenerator.cs
- SqlXml.cs
- XPathAxisIterator.cs
- XmlObjectSerializerWriteContextComplex.cs
- ActivitySurrogateSelector.cs
- mactripleDES.cs
- SegmentTree.cs
- ObjectNavigationPropertyMapping.cs
- Mutex.cs
- DefaultTextStore.cs
- ReachIDocumentPaginatorSerializer.cs
- SID.cs
- BitmapImage.cs
- HGlobalSafeHandle.cs
- XXXInfos.cs
- UseAttributeSetsAction.cs
- HtmlShimManager.cs
- ToolZone.cs
- HostingPreferredMapPath.cs
- XmlImplementation.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ConsumerConnectionPointCollection.cs
- ZipIOExtraField.cs
- httpapplicationstate.cs
- XamlWriterExtensions.cs
- sqlstateclientmanager.cs
- UpdateTranslator.cs
- DataGridViewCellStyle.cs
- WebServiceData.cs
- CustomAttributeBuilder.cs
- DesignerAttribute.cs
- StyleXamlParser.cs
- StylusOverProperty.cs
- SqlCommand.cs
- SimpleMailWebEventProvider.cs
- ElementsClipboardData.cs
- SafeNativeMethods.cs
- Header.cs
- StrongNameUtility.cs
- CacheAxisQuery.cs
- XmlText.cs