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
- GridViewAutomationPeer.cs
- AsyncInvokeContext.cs
- UserValidatedEventArgs.cs
- TraceUtils.cs
- FixedPage.cs
- listitem.cs
- BamlLocalizationDictionary.cs
- Metafile.cs
- ListViewItem.cs
- SiteMapNodeCollection.cs
- TraceInternal.cs
- SecurityPolicySection.cs
- CopyAttributesAction.cs
- ImpersonationContext.cs
- MatrixKeyFrameCollection.cs
- DeliveryRequirementsAttribute.cs
- GPStream.cs
- PointF.cs
- ColorAnimationUsingKeyFrames.cs
- DTCTransactionManager.cs
- AssemblyNameProxy.cs
- Crc32.cs
- SecurityElement.cs
- Win32.cs
- GlyphRun.cs
- MetadataPropertyAttribute.cs
- webeventbuffer.cs
- ListItemCollection.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DurableOperationAttribute.cs
- KeyFrames.cs
- Task.cs
- DataTableReaderListener.cs
- NotifyInputEventArgs.cs
- ServiceHttpModule.cs
- DataGridViewRow.cs
- NeutralResourcesLanguageAttribute.cs
- Stream.cs
- TemplateEditingFrame.cs
- Propagator.ExtentPlaceholderCreator.cs
- ApplicationServicesHostFactory.cs
- SmtpTransport.cs
- TextTreeInsertElementUndoUnit.cs
- DATA_BLOB.cs
- PasswordDeriveBytes.cs
- XamlStackWriter.cs
- PropertyGroupDescription.cs
- SafeEventLogReadHandle.cs
- Baml2006KeyRecord.cs
- LabelEditEvent.cs
- DataGridPageChangedEventArgs.cs
- SizeF.cs
- ScriptManagerProxy.cs
- Sql8ExpressionRewriter.cs
- SpellCheck.cs
- FixedTextSelectionProcessor.cs
- ScriptReferenceEventArgs.cs
- OverrideMode.cs
- ArrayHelper.cs
- ObjectViewFactory.cs
- ConnectionPoolManager.cs
- SQLChars.cs
- PrivilegeNotHeldException.cs
- ConfigurationStrings.cs
- MetadataPropertyvalue.cs
- InfocardChannelParameter.cs
- EdmComplexPropertyAttribute.cs
- ContainerSelectorActiveEvent.cs
- XmlSchemaDatatype.cs
- Schedule.cs
- WebPartEditorCancelVerb.cs
- TreeWalker.cs
- OutKeywords.cs
- SystemThemeKey.cs
- NameHandler.cs
- NameValuePermission.cs
- DataControlField.cs
- InvalidWMPVersionException.cs
- DetailsViewInsertedEventArgs.cs
- MailMessageEventArgs.cs
- PointAnimationBase.cs
- Debug.cs
- FreezableDefaultValueFactory.cs
- ObjectSpanRewriter.cs
- GroupBoxAutomationPeer.cs
- CompositionAdorner.cs
- TreeView.cs
- AttributeUsageAttribute.cs
- AssemblyHelper.cs
- HwndAppCommandInputProvider.cs
- DependencyObject.cs
- FormCollection.cs
- ScriptDescriptor.cs
- QilDataSource.cs
- RowParagraph.cs
- InputLanguageCollection.cs
- FixedPageProcessor.cs
- TabControl.cs
- CheckBoxPopupAdapter.cs
- ModelProperty.cs