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
- ThemeDictionaryExtension.cs
- TextElementCollection.cs
- InfoCardTraceRecord.cs
- StyleSheetRefUrlEditor.cs
- MimeTypeAttribute.cs
- OracleException.cs
- ParenthesizePropertyNameAttribute.cs
- LinqDataSourceContextEventArgs.cs
- XmlBinaryReader.cs
- LazyTextWriterCreator.cs
- TimeSpanSecondsConverter.cs
- CipherData.cs
- QuaternionKeyFrameCollection.cs
- WorkflowItemsPresenter.cs
- InstanceKeyCollisionException.cs
- X509Utils.cs
- BuildProviderAppliesToAttribute.cs
- FilterElement.cs
- DataGridViewDataConnection.cs
- TrustLevel.cs
- ToolStripDesignerUtils.cs
- GeneralTransform3D.cs
- TraceUtility.cs
- ExpandCollapseProviderWrapper.cs
- SoapExtensionStream.cs
- CriticalHandle.cs
- ISAPIApplicationHost.cs
- HttpWebResponse.cs
- ApplicationManager.cs
- OleServicesContext.cs
- MimeMultiPart.cs
- CodeMemberProperty.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- OdbcConnectionHandle.cs
- AttachmentCollection.cs
- MetafileEditor.cs
- SqlRowUpdatedEvent.cs
- WebPartManagerInternals.cs
- ByteAnimationUsingKeyFrames.cs
- UriSchemeKeyedCollection.cs
- TemplatePagerField.cs
- FormsAuthenticationConfiguration.cs
- TypeUsage.cs
- CurrentTimeZone.cs
- UIPropertyMetadata.cs
- StreamHelper.cs
- FontTypeConverter.cs
- CqlGenerator.cs
- Convert.cs
- AlphabeticalEnumConverter.cs
- InvalidDocumentContentsException.cs
- BamlBinaryWriter.cs
- QilValidationVisitor.cs
- CellLabel.cs
- HttpPostLocalhostServerProtocol.cs
- FontStyle.cs
- ZoneButton.cs
- PrinterResolution.cs
- XmlCountingReader.cs
- CompModSwitches.cs
- ItemCheckEvent.cs
- XmlSchemaExporter.cs
- OleDbCommandBuilder.cs
- AspNetPartialTrustHelpers.cs
- SuppressIldasmAttribute.cs
- ArrayConverter.cs
- NotSupportedException.cs
- WrappedIUnknown.cs
- recordstatescratchpad.cs
- XmlSchemaSimpleTypeUnion.cs
- TransactionsSectionGroup.cs
- Scene3D.cs
- RuleConditionDialog.cs
- Soap.cs
- DataObjectSettingDataEventArgs.cs
- BypassElementCollection.cs
- MappingMetadataHelper.cs
- OrthographicCamera.cs
- UpWmlMobileTextWriter.cs
- ProfileEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- DocumentOutline.cs
- ModulesEntry.cs
- CachingHintValidation.cs
- ObjectContext.cs
- DataGridViewHitTestInfo.cs
- Propagator.JoinPropagator.cs
- Vector3DConverter.cs
- WebPartDesigner.cs
- EnlistmentState.cs
- ToolStripPanelSelectionBehavior.cs
- SynchronizationContext.cs
- ChannelCredentials.cs
- DbProviderConfigurationHandler.cs
- ErrorProvider.cs
- TextDecorationCollectionConverter.cs
- ServerProtocol.cs
- SequenceDesigner.cs
- DeploymentExceptionMapper.cs
- LoadItemsEventArgs.cs