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
- IDQuery.cs
- MetafileHeader.cs
- SelectionChangedEventArgs.cs
- XmlSchemaCollection.cs
- HwndTarget.cs
- NotImplementedException.cs
- ProxyWebPart.cs
- SafeWaitHandle.cs
- ScriptingSectionGroup.cs
- NextPreviousPagerField.cs
- UnsafeCollabNativeMethods.cs
- JulianCalendar.cs
- InputScope.cs
- odbcmetadatacolumnnames.cs
- WinFormsSecurity.cs
- HtmlForm.cs
- PropertyItemInternal.cs
- ListViewItem.cs
- Transform3DGroup.cs
- InputLanguageSource.cs
- MergablePropertyAttribute.cs
- ClientData.cs
- Animatable.cs
- OpenTypeCommon.cs
- Authorization.cs
- CheckBoxAutomationPeer.cs
- SolidBrush.cs
- BufferCache.cs
- ChooseAction.cs
- Attributes.cs
- BamlBinaryReader.cs
- ExtentJoinTreeNode.cs
- EncryptedReference.cs
- GridViewDeleteEventArgs.cs
- TextDecorations.cs
- WebConvert.cs
- XmlSchemaExporter.cs
- EntityKeyElement.cs
- LongValidatorAttribute.cs
- DiscoveryProxy.cs
- Vector3DKeyFrameCollection.cs
- ConditionedDesigner.cs
- HyperLinkStyle.cs
- TypeSchema.cs
- StylusEventArgs.cs
- DefinitionUpdate.cs
- FixedSOMImage.cs
- WinEventTracker.cs
- ClientUrlResolverWrapper.cs
- IndexedWhereQueryOperator.cs
- DataFormats.cs
- DBSqlParserColumnCollection.cs
- DynamicArgumentDesigner.xaml.cs
- HtmlElementCollection.cs
- GuidelineSet.cs
- SpellCheck.cs
- ConfigurationSettings.cs
- XmlWrappingReader.cs
- PublisherMembershipCondition.cs
- MouseEventArgs.cs
- mediaclock.cs
- SqlUserDefinedAggregateAttribute.cs
- ComponentEvent.cs
- XpsPackagingPolicy.cs
- NativeMethods.cs
- XPathArrayIterator.cs
- StylusCollection.cs
- WhitespaceRuleReader.cs
- ColorBuilder.cs
- XsltFunctions.cs
- TypeUtils.cs
- DecoderNLS.cs
- MDIClient.cs
- AdapterDictionary.cs
- TemplateColumn.cs
- SecuritySessionClientSettings.cs
- XslTransform.cs
- MessageQueueEnumerator.cs
- CharEntityEncoderFallback.cs
- NestPullup.cs
- KeyPullup.cs
- UseManagedPresentationBindingElementImporter.cs
- CaseInsensitiveHashCodeProvider.cs
- StylusPoint.cs
- JsonClassDataContract.cs
- ProcessDesigner.cs
- TextViewElement.cs
- AggregateNode.cs
- TableRowGroup.cs
- XPathAxisIterator.cs
- ObfuscateAssemblyAttribute.cs
- SmiTypedGetterSetter.cs
- DesignerActionService.cs
- Root.cs
- XmlSignificantWhitespace.cs
- CopyNamespacesAction.cs
- WebBrowserPermission.cs
- VectorAnimationUsingKeyFrames.cs
- odbcmetadatafactory.cs
- EditorReuseAttribute.cs