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
- FacetDescriptionElement.cs
- SimpleApplicationHost.cs
- LicenseProviderAttribute.cs
- mediapermission.cs
- SuppressMessageAttribute.cs
- SecurityElement.cs
- OleDbConnectionFactory.cs
- MessageBox.cs
- EncodingInfo.cs
- FileUtil.cs
- Debug.cs
- UniqueSet.cs
- EditModeSwitchButton.cs
- MD5.cs
- ClientBuildManager.cs
- CmsUtils.cs
- BaseResourcesBuildProvider.cs
- ScalarOps.cs
- LifetimeMonitor.cs
- OperatorExpressions.cs
- NodeFunctions.cs
- XPathDocumentIterator.cs
- PeerToPeerException.cs
- SimpleWorkerRequest.cs
- ControlEvent.cs
- DataBinding.cs
- ProxyWebPartManager.cs
- XmlComplianceUtil.cs
- ProcessHostServerConfig.cs
- TypeSemantics.cs
- ModuleConfigurationInfo.cs
- ProtocolsConfigurationHandler.cs
- IndentedWriter.cs
- StorageBasedPackageProperties.cs
- QueryPageSettingsEventArgs.cs
- AnnotationDocumentPaginator.cs
- Timer.cs
- ArrayWithOffset.cs
- HitTestResult.cs
- NativeDirectoryServicesQueryAPIs.cs
- XamlSerializationHelper.cs
- Accessors.cs
- PlatformNotSupportedException.cs
- ExclusiveNamedPipeTransportManager.cs
- Size3DConverter.cs
- DirectoryObjectSecurity.cs
- XmlSchemaAnyAttribute.cs
- TextTreeRootNode.cs
- OracleString.cs
- ListParaClient.cs
- Triangle.cs
- DataGridViewColumnHeaderCell.cs
- InternalUserCancelledException.cs
- TypeGenericEnumerableViewSchema.cs
- RtfFormatStack.cs
- DataControlCommands.cs
- TreeBuilder.cs
- DetailsViewUpdateEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- DLinqColumnProvider.cs
- HttpConfigurationContext.cs
- SafeSecurityHandles.cs
- DynamicActionMessageFilter.cs
- EdgeProfileValidation.cs
- LocatorGroup.cs
- GraphicsPathIterator.cs
- PatternMatcher.cs
- Size.cs
- StringAnimationUsingKeyFrames.cs
- OleDbStruct.cs
- BindingGroup.cs
- DataViewListener.cs
- MultiByteCodec.cs
- Simplifier.cs
- XmlSchemaComplexContentExtension.cs
- HighlightVisual.cs
- WrapPanel.cs
- MobileComponentEditorPage.cs
- GuidTagList.cs
- GuidelineCollection.cs
- NamespaceQuery.cs
- TemplatedEditableDesignerRegion.cs
- MergablePropertyAttribute.cs
- ImageEditor.cs
- CachingHintValidation.cs
- PieceDirectory.cs
- DeviceFilterDictionary.cs
- Vector3DKeyFrameCollection.cs
- SqlMethodAttribute.cs
- ServiceAuthorizationBehavior.cs
- ContentDisposition.cs
- NetTcpBindingCollectionElement.cs
- ChtmlTextWriter.cs
- SiteMembershipCondition.cs
- LongTypeConverter.cs
- EventHandlers.cs
- UnsafeNativeMethods.cs
- UnwrappedTypesXmlSerializerManager.cs
- ContentElement.cs
- UserControlDesigner.cs