Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableRow.cs
- ContextMenuStripGroupCollection.cs
- RegexWorker.cs
- XmlWriter.cs
- ApplyImportsAction.cs
- WebZone.cs
- OptimisticConcurrencyException.cs
- BitmapEffectInputData.cs
- GetLastErrorDetailsRequest.cs
- GestureRecognitionResult.cs
- ParagraphResult.cs
- ApplicationFileParser.cs
- infer.cs
- MatrixConverter.cs
- FormsAuthenticationConfiguration.cs
- WhiteSpaceTrimStringConverter.cs
- TreeViewTemplateSelector.cs
- PasswordTextContainer.cs
- ArithmeticLiteral.cs
- Site.cs
- String.cs
- ExceptionUtil.cs
- RSAProtectedConfigurationProvider.cs
- ToolStripCollectionEditor.cs
- HttpCapabilitiesBase.cs
- DistinctQueryOperator.cs
- ObjectAssociationEndMapping.cs
- UnsafeNativeMethods.cs
- WebColorConverter.cs
- SEHException.cs
- Material.cs
- CompressionTransform.cs
- NavigatorInput.cs
- IndicShape.cs
- MaxMessageSizeStream.cs
- TabRenderer.cs
- DataGridCell.cs
- IndependentAnimationStorage.cs
- GenerateTemporaryAssemblyTask.cs
- BitmapFrameEncode.cs
- SqlParameterCollection.cs
- AsyncStreamReader.cs
- FileNotFoundException.cs
- RecordsAffectedEventArgs.cs
- NamespaceEmitter.cs
- TraceData.cs
- HideDisabledControlAdapter.cs
- EffectiveValueEntry.cs
- ContainerParagraph.cs
- FamilyTypefaceCollection.cs
- ApplicationTrust.cs
- ZipIOModeEnforcingStream.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SetIterators.cs
- TypeSystemHelpers.cs
- TextStore.cs
- PropertyCollection.cs
- Model3D.cs
- OutputCacheModule.cs
- FileInfo.cs
- InputBindingCollection.cs
- DataGridTablesFactory.cs
- CryptoApi.cs
- PersonalizationAdministration.cs
- DisposableCollectionWrapper.cs
- XPathBinder.cs
- RelationshipNavigation.cs
- Stackframe.cs
- CollectionBuilder.cs
- TextAutomationPeer.cs
- SQLDecimalStorage.cs
- autovalidator.cs
- HtmlInputCheckBox.cs
- SiteMapHierarchicalDataSourceView.cs
- _IPv4Address.cs
- EntityConnection.cs
- DetailsViewRowCollection.cs
- ClientSettingsStore.cs
- NeutralResourcesLanguageAttribute.cs
- XamlPathDataSerializer.cs
- SQLString.cs
- CapabilitiesAssignment.cs
- DictionaryCustomTypeDescriptor.cs
- ScrollData.cs
- ConstraintManager.cs
- WriteFileContext.cs
- JapaneseLunisolarCalendar.cs
- BaseContextMenu.cs
- TargetException.cs
- ZipIOExtraFieldZip64Element.cs
- JavaScriptString.cs
- IIS7UserPrincipal.cs
- SecurityKeyIdentifier.cs
- XPathNavigator.cs
- ExpressionBuilderContext.cs
- Separator.cs
- ValidationManager.cs
- CurrentTimeZone.cs
- NamespaceInfo.cs
- RegexStringValidator.cs