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
- ValueUtilsSmi.cs
- SqlCommandSet.cs
- DataTrigger.cs
- WinFormsUtils.cs
- SessionEndingEventArgs.cs
- DispatcherProcessingDisabled.cs
- CheckedListBox.cs
- StringOutput.cs
- PackageRelationshipCollection.cs
- ProxyWebPartConnectionCollection.cs
- SqlTransaction.cs
- HttpCacheVaryByContentEncodings.cs
- HostedTcpTransportManager.cs
- HttpCapabilitiesBase.cs
- SiteMapSection.cs
- TextSelectionProcessor.cs
- ValueTable.cs
- TextSchema.cs
- TextRangeEditLists.cs
- GPStream.cs
- ImageUrlEditor.cs
- SemaphoreFullException.cs
- DesignerActionMethodItem.cs
- CompositeDesignerAccessibleObject.cs
- initElementDictionary.cs
- XamlToRtfWriter.cs
- MetadataHelper.cs
- LicenseProviderAttribute.cs
- TagPrefixAttribute.cs
- XPathNodeList.cs
- MarkupCompiler.cs
- DecimalConverter.cs
- HandleCollector.cs
- ExitEventArgs.cs
- UserControlFileEditor.cs
- LinqDataSourceContextEventArgs.cs
- DeclaredTypeElement.cs
- BrowserDefinition.cs
- FixedTextSelectionProcessor.cs
- StylusCollection.cs
- WindowsPrincipal.cs
- StreamReader.cs
- WindowsScroll.cs
- DecimalConverter.cs
- FilterFactory.cs
- XmlObjectSerializerWriteContext.cs
- HuffModule.cs
- DetailsViewUpdatedEventArgs.cs
- ServiceCredentialsElement.cs
- TemplateBindingExtensionConverter.cs
- ActivityExecutionFilter.cs
- RotateTransform.cs
- CodeDirectiveCollection.cs
- SynchronizedPool.cs
- RootBrowserWindowAutomationPeer.cs
- WindowsToolbarAsMenu.cs
- ResizeGrip.cs
- CoreSwitches.cs
- PolicyStatement.cs
- CodeArgumentReferenceExpression.cs
- PackageDigitalSignature.cs
- DesignerOptionService.cs
- PropertyKey.cs
- XmlStreamStore.cs
- RealizedColumnsBlock.cs
- PrincipalPermission.cs
- LinearGradientBrush.cs
- FrameworkElement.cs
- ServerTooBusyException.cs
- ObjectListGeneralPage.cs
- Part.cs
- MenuRendererClassic.cs
- VisualStyleTypesAndProperties.cs
- SqlConnectionString.cs
- CompilerCollection.cs
- MessageCredentialType.cs
- EditingScope.cs
- TreeNodeEventArgs.cs
- VisualTarget.cs
- SoapSchemaImporter.cs
- FloaterBaseParaClient.cs
- BooleanSwitch.cs
- ProxyAssemblyNotLoadedException.cs
- DataGridRelationshipRow.cs
- AuthenticateEventArgs.cs
- storepermission.cs
- XamlVector3DCollectionSerializer.cs
- GCHandleCookieTable.cs
- ManageRequest.cs
- DmlSqlGenerator.cs
- OleDbSchemaGuid.cs
- GrowingArray.cs
- ReverseComparer.cs
- SplitContainerDesigner.cs
- TransformBlockRequest.cs
- BitmapEffectGeneralTransform.cs
- LongPath.cs
- ConnectivityStatus.cs
- CommandPlan.cs
- Trigger.cs