Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / CachingHintValidation.cs / 1 / 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
- BuildManager.cs
- GridItemPatternIdentifiers.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SettingsPropertyCollection.cs
- X509Certificate2Collection.cs
- Lasso.cs
- UrlEncodedParameterWriter.cs
- DirectoryInfo.cs
- SliderAutomationPeer.cs
- TemplatedMailWebEventProvider.cs
- Event.cs
- ConfigsHelper.cs
- XNameTypeConverter.cs
- WebPartVerbsEventArgs.cs
- ExtractorMetadata.cs
- XmlCharType.cs
- StaticContext.cs
- CodePageEncoding.cs
- ObjectContext.cs
- XmlSchemaExternal.cs
- DirectoryObjectSecurity.cs
- DataSet.cs
- MetadataSource.cs
- FileDialog.cs
- GroupDescription.cs
- DateTimeParse.cs
- ValueCollectionParameterReader.cs
- WebControlsSection.cs
- BinaryObjectInfo.cs
- Vector3dCollection.cs
- Dynamic.cs
- PenThread.cs
- EntityContainer.cs
- WarningException.cs
- URLMembershipCondition.cs
- ProgressBar.cs
- ScrollData.cs
- WSTrustFeb2005.cs
- TypedRowGenerator.cs
- FlagsAttribute.cs
- HorizontalAlignConverter.cs
- WriteTimeStream.cs
- HttpConfigurationSystem.cs
- DefaultPrintController.cs
- EdmRelationshipRoleAttribute.cs
- MailWriter.cs
- PointCollection.cs
- OrderedDictionaryStateHelper.cs
- ControlParameter.cs
- CollectionView.cs
- AsyncCodeActivity.cs
- StoreItemCollection.cs
- FileInfo.cs
- UpdatePanel.cs
- DelegatingTypeDescriptionProvider.cs
- RunInstallerAttribute.cs
- ResourceManagerWrapper.cs
- Oid.cs
- InvokePattern.cs
- SafeArrayRankMismatchException.cs
- DataColumnPropertyDescriptor.cs
- StyleConverter.cs
- DesignTimeSiteMapProvider.cs
- InfocardExtendedInformationCollection.cs
- AlignmentYValidation.cs
- KeyInstance.cs
- MD5CryptoServiceProvider.cs
- _NetRes.cs
- ErrorLog.cs
- VectorKeyFrameCollection.cs
- CharStorage.cs
- Splitter.cs
- Stylesheet.cs
- _ConnectStream.cs
- TableRow.cs
- DataFormats.cs
- HashHelpers.cs
- RoleManagerModule.cs
- AsyncPostBackTrigger.cs
- ScrollChrome.cs
- EnumMember.cs
- EntityDataSourceState.cs
- XmlC14NWriter.cs
- NumericPagerField.cs
- WithStatement.cs
- XmlDictionaryReaderQuotas.cs
- GuidelineCollection.cs
- BitmapCodecInfo.cs
- ImageKeyConverter.cs
- WebPartUtil.cs
- basevalidator.cs
- PerformanceCounterCategory.cs
- PointAnimationClockResource.cs
- Vector3DKeyFrameCollection.cs
- PropertyEmitterBase.cs
- ChannelManager.cs
- XamlGridLengthSerializer.cs
- WCFBuildProvider.cs
- WebServiceClientProxyGenerator.cs
- ConstraintEnumerator.cs