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
- QueryOptionExpression.cs
- UnitControl.cs
- JsonDeserializer.cs
- Select.cs
- AsnEncodedData.cs
- UIElementHelper.cs
- FixedSOMPage.cs
- DecoderReplacementFallback.cs
- EntityChangedParams.cs
- XmlRawWriter.cs
- Compiler.cs
- _AutoWebProxyScriptEngine.cs
- Bezier.cs
- DebugTraceHelper.cs
- securitycriticaldataClass.cs
- UrlMappingCollection.cs
- TemplateBaseAction.cs
- XpsThumbnail.cs
- QuestionEventArgs.cs
- CatalogPart.cs
- XmlSchemas.cs
- InProcStateClientManager.cs
- FlowDocumentPaginator.cs
- WinInet.cs
- ChangeConflicts.cs
- HtmlLink.cs
- ClientEventManager.cs
- BooleanFacetDescriptionElement.cs
- ToolStripDropDown.cs
- DefaultCommandConverter.cs
- RenderContext.cs
- CompilerInfo.cs
- CriticalHandle.cs
- AssemblyResourceLoader.cs
- KnownTypes.cs
- SizeConverter.cs
- PrivilegedConfigurationManager.cs
- CssStyleCollection.cs
- LazyInitializer.cs
- DrawingGroup.cs
- BinaryWriter.cs
- CapabilitiesRule.cs
- TableLayoutStyle.cs
- BoundColumn.cs
- FocusManager.cs
- CompiledQuery.cs
- InputDevice.cs
- BindingOperations.cs
- ArrayConverter.cs
- xmlsaver.cs
- Triplet.cs
- NameValuePair.cs
- GB18030Encoding.cs
- Setter.cs
- DocumentReferenceCollection.cs
- MenuBase.cs
- ConfigXmlSignificantWhitespace.cs
- sqlnorm.cs
- SafeEventLogReadHandle.cs
- DocumentPageView.cs
- AsyncPostBackErrorEventArgs.cs
- StringInfo.cs
- ActivityXRefPropertyEditor.cs
- StateBag.cs
- RsaKeyIdentifierClause.cs
- DbConnectionHelper.cs
- ListBase.cs
- QilValidationVisitor.cs
- ListComponentEditorPage.cs
- XsltConvert.cs
- QueryStack.cs
- BitmapEncoder.cs
- FileDialogCustomPlacesCollection.cs
- SQLDecimalStorage.cs
- SchemaImporterExtensionElementCollection.cs
- SystemException.cs
- XsltOutput.cs
- wmiprovider.cs
- ConfigXmlElement.cs
- CmsInterop.cs
- ContextStaticAttribute.cs
- RequestCachePolicyConverter.cs
- BamlLocalizer.cs
- ReadingWritingEntityEventArgs.cs
- ReferentialConstraintRoleElement.cs
- HttpHandlerAction.cs
- Adorner.cs
- QueryAsyncResult.cs
- InputManager.cs
- XslVisitor.cs
- ModelFunction.cs
- ChannelManagerService.cs
- ThumbButtonInfo.cs
- GACIdentityPermission.cs
- CodeTryCatchFinallyStatement.cs
- MetadataCacheItem.cs
- NTAccount.cs
- XPathDescendantIterator.cs
- UnauthorizedAccessException.cs
- BCryptNative.cs