Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ListDictionaryInternal.cs
- UpdatePanelControlTrigger.cs
- AxisAngleRotation3D.cs
- WebPartPersonalization.cs
- XXXInfos.cs
- RichTextBoxConstants.cs
- ExtensionWindow.cs
- AdornerPresentationContext.cs
- MenuItem.cs
- Matrix.cs
- QueryOperationResponseOfT.cs
- Camera.cs
- Color.cs
- TypeHelper.cs
- AvTrace.cs
- SchemaMerger.cs
- XamlBrushSerializer.cs
- DefaultValidator.cs
- FileDialog.cs
- XamlValidatingReader.cs
- WebPartDisplayModeCancelEventArgs.cs
- XPathBinder.cs
- SqlDependency.cs
- NotifyParentPropertyAttribute.cs
- ConfigurationException.cs
- GridViewUpdatedEventArgs.cs
- HttpCacheParams.cs
- ToolStripItemClickedEventArgs.cs
- StreamingContext.cs
- IndicCharClassifier.cs
- SQLBoolean.cs
- DynamicActivity.cs
- TabControlCancelEvent.cs
- CipherData.cs
- ResourceDefaultValueAttribute.cs
- SoapRpcMethodAttribute.cs
- SamlAttributeStatement.cs
- ScriptingScriptResourceHandlerSection.cs
- PositiveTimeSpanValidator.cs
- NameHandler.cs
- XmlnsPrefixAttribute.cs
- XhtmlBasicCommandAdapter.cs
- XmlTextWriter.cs
- OverrideMode.cs
- UserControlBuildProvider.cs
- RowToParametersTransformer.cs
- LinqDataSourceEditData.cs
- SequenceNumber.cs
- WsatTransactionInfo.cs
- EmptyStringExpandableObjectConverter.cs
- StackOverflowException.cs
- Literal.cs
- BitmapImage.cs
- BaseProcessor.cs
- LiteralControl.cs
- LinqDataSourceEditData.cs
- ReadOnlyCollection.cs
- SizeF.cs
- IntSecurity.cs
- SecurityManager.cs
- Quaternion.cs
- ToolStripProgressBar.cs
- SpecialFolderEnumConverter.cs
- CodeAttributeArgumentCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- ConfigurationValues.cs
- KnownTypes.cs
- XmlReader.cs
- FontSource.cs
- LogFlushAsyncResult.cs
- AsymmetricKeyExchangeFormatter.cs
- CapabilitiesRule.cs
- HashCodeCombiner.cs
- SqlTransaction.cs
- UTF32Encoding.cs
- RowsCopiedEventArgs.cs
- Visual3D.cs
- MetadataArtifactLoader.cs
- __ComObject.cs
- CheckBoxFlatAdapter.cs
- GradientStop.cs
- assertwrapper.cs
- UInt16.cs
- Column.cs
- CngProperty.cs
- WebPartDeleteVerb.cs
- MimeAnyImporter.cs
- ButtonPopupAdapter.cs
- ResXResourceWriter.cs
- CurrentTimeZone.cs
- SubpageParagraph.cs
- Graph.cs
- ZipArchive.cs
- BinHexEncoder.cs
- CriticalFileToken.cs
- DiscoveryVersion.cs
- XmlSchemaGroupRef.cs
- SessionMode.cs
- SqlDuplicator.cs
- XPathBinder.cs