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
- DataGridViewRowsAddedEventArgs.cs
- GridItemPatternIdentifiers.cs
- OdbcTransaction.cs
- XamlTypeMapper.cs
- CompensatableSequenceActivity.cs
- SafeArrayTypeMismatchException.cs
- TraceHandler.cs
- UserNameSecurityToken.cs
- JsonEnumDataContract.cs
- IImplicitResourceProvider.cs
- ResolveCriteriaCD1.cs
- SqlUtils.cs
- SiteMapPathDesigner.cs
- SubtreeProcessor.cs
- KeyNotFoundException.cs
- Point4DValueSerializer.cs
- CssTextWriter.cs
- WebRequestModulesSection.cs
- BlockCollection.cs
- PriorityItem.cs
- precedingsibling.cs
- TransformGroup.cs
- X509AsymmetricSecurityKey.cs
- FieldDescriptor.cs
- SID.cs
- ResourceProviderFactory.cs
- SettingsProperty.cs
- AsymmetricSignatureDeformatter.cs
- RegexGroupCollection.cs
- TextBox.cs
- TableLayoutPanelResizeGlyph.cs
- AssemblyBuilderData.cs
- M3DUtil.cs
- HandleExceptionArgs.cs
- DtdParser.cs
- DbCommandTree.cs
- StructuralCache.cs
- DelayedRegex.cs
- XmlSchemaSimpleType.cs
- OpCopier.cs
- BehaviorEditorPart.cs
- MsmqTransportReceiveParameters.cs
- EntityDataSourceWrapper.cs
- HScrollBar.cs
- DataControlFieldHeaderCell.cs
- AuthenticationConfig.cs
- webeventbuffer.cs
- Message.cs
- FormViewRow.cs
- ReflectTypeDescriptionProvider.cs
- ToolStripSplitButton.cs
- WindowsScrollBar.cs
- PeerNameRecordCollection.cs
- AssemblyAttributesGoHere.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OrderedDictionary.cs
- NavigationFailedEventArgs.cs
- DataErrorValidationRule.cs
- SchemaCollectionPreprocessor.cs
- TableLayoutSettingsTypeConverter.cs
- codemethodreferenceexpression.cs
- Literal.cs
- SQLCharsStorage.cs
- PanelDesigner.cs
- RetrieveVirtualItemEventArgs.cs
- ISFTagAndGuidCache.cs
- TypeDescriptionProvider.cs
- shaperfactory.cs
- OpCodes.cs
- Int16Animation.cs
- EventSinkHelperWriter.cs
- TransformationRules.cs
- ObjectComplexPropertyMapping.cs
- MimeTypeMapper.cs
- Transform3DGroup.cs
- ConfigurationException.cs
- ToolStripSeparatorRenderEventArgs.cs
- SoapParser.cs
- TypeUsage.cs
- ChannelProtectionRequirements.cs
- DataRowComparer.cs
- CodeTypeDeclarationCollection.cs
- DateTimeSerializationSection.cs
- PagePropertiesChangingEventArgs.cs
- diagnosticsswitches.cs
- TailCallAnalyzer.cs
- MasterPageCodeDomTreeGenerator.cs
- EmptyWorkItem.cs
- RegexCompilationInfo.cs
- SqlInternalConnectionTds.cs
- SimpleType.cs
- CompositeCollectionView.cs
- XmlBinaryReader.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TagNameToTypeMapper.cs
- AsyncCompletedEventArgs.cs
- DateTimePicker.cs
- WindowVisualStateTracker.cs
- TypeUtil.cs
- InputLanguageProfileNotifySink.cs