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
- IPAddress.cs
- LinkedResourceCollection.cs
- TextRangeEditLists.cs
- ListViewDataItem.cs
- CaseInsensitiveHashCodeProvider.cs
- DetailsViewDeleteEventArgs.cs
- SrgsElementFactory.cs
- AdornerLayer.cs
- FormsAuthenticationTicket.cs
- ListViewSelectEventArgs.cs
- SerializationSectionGroup.cs
- XmlTextReaderImplHelpers.cs
- MatchingStyle.cs
- OdbcConnectionHandle.cs
- ExtendedPropertyDescriptor.cs
- XpsFilter.cs
- FieldBuilder.cs
- ColumnBinding.cs
- ContentAlignmentEditor.cs
- PropertyMetadata.cs
- IriParsingElement.cs
- SetStateEventArgs.cs
- Accessible.cs
- ErrorProvider.cs
- SqlWorkflowPersistenceService.cs
- CompiledQueryCacheEntry.cs
- ExpressionBuilder.cs
- SynchronousReceiveElement.cs
- UrlAuthFailedErrorFormatter.cs
- XmlTextEncoder.cs
- OleDbRowUpdatedEvent.cs
- DataGridViewCellStyleConverter.cs
- Control.cs
- RIPEMD160.cs
- ProfileSection.cs
- IERequestCache.cs
- ListItemCollection.cs
- CompilerGlobalScopeAttribute.cs
- DateTimeConstantAttribute.cs
- SystemInfo.cs
- StructuredCompositeActivityDesigner.cs
- Executor.cs
- PropertyCondition.cs
- XPathSingletonIterator.cs
- CodeFieldReferenceExpression.cs
- FontFamilyValueSerializer.cs
- CheckBoxFlatAdapter.cs
- XmlBoundElement.cs
- HttpRequestCacheValidator.cs
- BitSet.cs
- TableSectionStyle.cs
- BidOverLoads.cs
- NegationPusher.cs
- OleDbException.cs
- FragmentQueryProcessor.cs
- TextElementCollection.cs
- elementinformation.cs
- MemoryMappedFileSecurity.cs
- Pair.cs
- JournalEntryStack.cs
- HttpWebRequest.cs
- QilReplaceVisitor.cs
- EntityDataSourceWrapper.cs
- XmlTextWriter.cs
- BaseTemplateParser.cs
- DynamicILGenerator.cs
- HttpException.cs
- DataServiceRequestOfT.cs
- CrossAppDomainChannel.cs
- FieldBuilder.cs
- XDeferredAxisSource.cs
- ClientOperationFormatterProvider.cs
- FileCodeGroup.cs
- SqlRecordBuffer.cs
- Point3DCollectionConverter.cs
- ColorPalette.cs
- SecureConversationSecurityTokenParameters.cs
- TransportChannelFactory.cs
- HostingEnvironmentSection.cs
- CodeAttributeDeclaration.cs
- TextRange.cs
- ComponentDispatcherThread.cs
- ItemChangedEventArgs.cs
- ipaddressinformationcollection.cs
- LocalBuilder.cs
- ISAPIRuntime.cs
- WebHeaderCollection.cs
- DrawListViewItemEventArgs.cs
- contentDescriptor.cs
- ProviderException.cs
- WebPartEditorCancelVerb.cs
- MulticastOption.cs
- DBNull.cs
- ArgumentValue.cs
- HttpWebResponse.cs
- NGCSerializationManager.cs
- MemoryStream.cs
- ListControl.cs
- RectangleConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs