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
- ListSurrogate.cs
- UnionCodeGroup.cs
- serverconfig.cs
- XmlSiteMapProvider.cs
- StringAnimationBase.cs
- XmlElement.cs
- OutputCacheProfileCollection.cs
- Timer.cs
- WeakReference.cs
- Attributes.cs
- TaskbarItemInfo.cs
- WorkItem.cs
- UnionExpr.cs
- StructuredProperty.cs
- CustomExpressionEventArgs.cs
- Int32AnimationBase.cs
- SafeNativeMethods.cs
- ValueUtilsSmi.cs
- XmlSchemaImporter.cs
- ThicknessAnimationBase.cs
- WebPartConnectionsConnectVerb.cs
- DispatcherEventArgs.cs
- HijriCalendar.cs
- EntityDataSourceState.cs
- SystemSounds.cs
- TimelineClockCollection.cs
- ClientConvert.cs
- XhtmlBasicSelectionListAdapter.cs
- FileDialog.cs
- ProcessThreadCollection.cs
- GridViewRowPresenter.cs
- ExpressionBuilderCollection.cs
- Span.cs
- ClientConfigurationSystem.cs
- SrgsGrammar.cs
- ScrollViewerAutomationPeer.cs
- HostedTcpTransportManager.cs
- shaperfactoryquerycacheentry.cs
- QilPatternFactory.cs
- WizardSideBarListControlItemEventArgs.cs
- LicFileLicenseProvider.cs
- TransactionScope.cs
- PeerObject.cs
- UIElementHelper.cs
- Form.cs
- SoapTypeAttribute.cs
- SBCSCodePageEncoding.cs
- SqlDataSourceEnumerator.cs
- OpenTypeMethods.cs
- StaticSiteMapProvider.cs
- TileBrush.cs
- BitmapEffectInput.cs
- BamlResourceContent.cs
- OleDbConnection.cs
- FormViewUpdatedEventArgs.cs
- EntityDataSourceStatementEditorForm.cs
- URLIdentityPermission.cs
- RsaKeyIdentifierClause.cs
- LeafCellTreeNode.cs
- ObjectSet.cs
- CqlBlock.cs
- CompositeFontParser.cs
- MaskedTextBoxDesigner.cs
- KeyTime.cs
- PackageDigitalSignature.cs
- ClientScriptManagerWrapper.cs
- TypeDescriptionProviderAttribute.cs
- TableParaClient.cs
- DataGridView.cs
- DBCommand.cs
- IgnoreFlushAndCloseStream.cs
- PropertyPathConverter.cs
- BitVec.cs
- MonitoringDescriptionAttribute.cs
- WebHeaderCollection.cs
- ReflectEventDescriptor.cs
- ZipPackage.cs
- Baml2006ReaderFrame.cs
- UnmanagedHandle.cs
- WrapperEqualityComparer.cs
- HttpListenerContext.cs
- RequestResponse.cs
- AccessibilityHelperForVista.cs
- DBSchemaTable.cs
- ApplicationId.cs
- ListViewDeleteEventArgs.cs
- XmlSortKeyAccumulator.cs
- InlinedAggregationOperator.cs
- AssemblyNameProxy.cs
- UrlPropertyAttribute.cs
- AddInAdapter.cs
- StyleCollectionEditor.cs
- SHA1CryptoServiceProvider.cs
- XmlExtensionFunction.cs
- LazyInitializer.cs
- TimeZoneNotFoundException.cs
- EventEntry.cs
- XmlObjectSerializerWriteContext.cs
- DataGridCommandEventArgs.cs
- VisualBasicSettings.cs