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
- ConfigXmlText.cs
- DecoderExceptionFallback.cs
- ListControlConvertEventArgs.cs
- MetadataItemCollectionFactory.cs
- MostlySingletonList.cs
- PropertyValueChangedEvent.cs
- DataGridViewComponentPropertyGridSite.cs
- TraceSection.cs
- AccessorTable.cs
- DesignRelationCollection.cs
- LowerCaseStringConverter.cs
- DropDownButton.cs
- DiscoveryReference.cs
- QueryAccessibilityHelpEvent.cs
- DesignerOptionService.cs
- XmlSchemaRedefine.cs
- SqlColumnizer.cs
- ViewgenGatekeeper.cs
- TaskCanceledException.cs
- COAUTHINFO.cs
- SchemaElement.cs
- WindowsStartMenu.cs
- DateTimeOffsetConverter.cs
- Highlights.cs
- PopupEventArgs.cs
- Enlistment.cs
- IgnoreFlushAndCloseStream.cs
- BodyGlyph.cs
- FreezableDefaultValueFactory.cs
- AuthorizationRule.cs
- DynamicValidatorEventArgs.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- EncryptedPackageFilter.cs
- ControlDesigner.cs
- LinqDataSourceContextData.cs
- QilGenerator.cs
- IDReferencePropertyAttribute.cs
- ConnectionPoint.cs
- SessionStateSection.cs
- ObjectAnimationUsingKeyFrames.cs
- StrongNameMembershipCondition.cs
- DataGridViewButtonCell.cs
- ReflectTypeDescriptionProvider.cs
- StorageRoot.cs
- CodeCatchClause.cs
- UInt64Converter.cs
- Symbol.cs
- SamlAction.cs
- AccessedThroughPropertyAttribute.cs
- MobileCategoryAttribute.cs
- NotifyIcon.cs
- SqlDataRecord.cs
- RoutingEndpointTrait.cs
- FixedTextContainer.cs
- MembershipValidatePasswordEventArgs.cs
- PackageRelationshipSelector.cs
- BridgeDataRecord.cs
- TrackingLocation.cs
- HtmlTitle.cs
- HtmlButton.cs
- ReferenceEqualityComparer.cs
- HttpUnhandledOperationInvoker.cs
- xmlfixedPageInfo.cs
- WorkflowFileItem.cs
- Set.cs
- x509store.cs
- NoClickablePointException.cs
- ProxyHelper.cs
- AxisAngleRotation3D.cs
- WindowsTreeView.cs
- ProfileModule.cs
- BasePropertyDescriptor.cs
- PropertyReferenceSerializer.cs
- ZipIOExtraFieldZip64Element.cs
- Inflater.cs
- COM2PropertyDescriptor.cs
- FilterQueryOptionExpression.cs
- IPAddress.cs
- Literal.cs
- XmlSchemaSimpleTypeList.cs
- CompilationSection.cs
- AsmxEndpointPickerExtension.cs
- TextHidden.cs
- BreakSafeBase.cs
- InternalSafeNativeMethods.cs
- ModuleBuilder.cs
- HtmlShimManager.cs
- WebHeaderCollection.cs
- StrokeNodeOperations.cs
- TransformerConfigurationWizardBase.cs
- XsdDuration.cs
- MemberJoinTreeNode.cs
- AuthenticationModulesSection.cs
- RectangleHotSpot.cs
- Tile.cs
- SHA512Managed.cs
- SubMenuStyleCollection.cs
- LineMetrics.cs
- TabItem.cs
- ScrollBar.cs