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
- RepeaterItem.cs
- MemoryStream.cs
- DBDataPermission.cs
- SQLDoubleStorage.cs
- infer.cs
- ObjectDataSourceChooseTypePanel.cs
- LabelAutomationPeer.cs
- LayoutExceptionEventArgs.cs
- JsonSerializer.cs
- XmlEnumAttribute.cs
- PartManifestEntry.cs
- StorageScalarPropertyMapping.cs
- SqlClientWrapperSmiStreamChars.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- XamlClipboardData.cs
- ProfileProvider.cs
- EntityDataSourceSelectingEventArgs.cs
- TraceSection.cs
- TypeForwardedFromAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DrawingAttributesDefaultValueFactory.cs
- TextChangedEventArgs.cs
- XmlBoundElement.cs
- ArglessEventHandlerProxy.cs
- ArrayListCollectionBase.cs
- MetadataAssemblyHelper.cs
- ContractUtils.cs
- ToggleProviderWrapper.cs
- BitmapEffectGroup.cs
- SupportsEventValidationAttribute.cs
- InstancePersistence.cs
- PageThemeParser.cs
- XmlSchemaGroup.cs
- ResourcePool.cs
- HtmlAnchor.cs
- AdvancedBindingPropertyDescriptor.cs
- CharUnicodeInfo.cs
- LoadedOrUnloadedOperation.cs
- XmlException.cs
- CompilerParameters.cs
- OrderPreservingPipeliningMergeHelper.cs
- CriticalFinalizerObject.cs
- NestedContainer.cs
- PrintingPermissionAttribute.cs
- VersionedStreamOwner.cs
- AssemblyName.cs
- GroupItemAutomationPeer.cs
- ObjectToModelValueConverter.cs
- KeyedByTypeCollection.cs
- SQLInt64.cs
- MailWebEventProvider.cs
- WebReferencesBuildProvider.cs
- QuarticEase.cs
- Label.cs
- Inline.cs
- FragmentQueryProcessor.cs
- StreamInfo.cs
- MasterPageParser.cs
- BindingCollection.cs
- SqlBulkCopyColumnMapping.cs
- LongValidatorAttribute.cs
- IdentitySection.cs
- InitializeCorrelation.cs
- WindowProviderWrapper.cs
- ViewManager.cs
- RegexTypeEditor.cs
- DocumentReference.cs
- XmlSchemaCompilationSettings.cs
- ResourceLoader.cs
- UnSafeCharBuffer.cs
- SchemaDeclBase.cs
- DataControlImageButton.cs
- TokenFactoryFactory.cs
- Transform3DGroup.cs
- SystemDropShadowChrome.cs
- IPAddress.cs
- RoleManagerSection.cs
- DataKeyCollection.cs
- UnionExpr.cs
- CompilationUtil.cs
- PathGeometry.cs
- XmlBinaryReader.cs
- ObjectTokenCategory.cs
- OrderByBuilder.cs
- TextBox.cs
- XmlQueryContext.cs
- CustomAttribute.cs
- UdpDiscoveryMessageFilter.cs
- EdmFunction.cs
- SmtpNegotiateAuthenticationModule.cs
- DoubleLink.cs
- XmlBinaryWriterSession.cs
- SqlCacheDependency.cs
- Freezable.cs
- GridViewCancelEditEventArgs.cs
- ConditionalAttribute.cs
- DPTypeDescriptorContext.cs
- TrackingValidationObjectDictionary.cs
- GridViewUpdatedEventArgs.cs
- HitTestWithGeometryDrawingContextWalker.cs