Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- EditorOptionAttribute.cs
- StringReader.cs
- WebServiceAttribute.cs
- CodeTypeMember.cs
- DoubleLinkListEnumerator.cs
- XPathScanner.cs
- DataTableNewRowEvent.cs
- InputBinding.cs
- AnimationLayer.cs
- HitTestFilterBehavior.cs
- indexingfiltermarshaler.cs
- NumericUpDownAcceleration.cs
- XmlElementAttributes.cs
- BaseResourcesBuildProvider.cs
- StrokeFIndices.cs
- StoryFragments.cs
- SchemaMerger.cs
- Decorator.cs
- CompositeActivityTypeDescriptorProvider.cs
- Vars.cs
- RadioButton.cs
- RijndaelManaged.cs
- AVElementHelper.cs
- ClientRolePrincipal.cs
- SqlCharStream.cs
- JapaneseCalendar.cs
- AuthorizationSection.cs
- AssemblyName.cs
- _BasicClient.cs
- ClientConvert.cs
- OdbcCommand.cs
- ByteArrayHelperWithString.cs
- BindableTemplateBuilder.cs
- _ListenerRequestStream.cs
- Int32RectValueSerializer.cs
- HttpResponseHeader.cs
- Symbol.cs
- FixedFlowMap.cs
- FrameAutomationPeer.cs
- DateTimeOffsetConverter.cs
- SqlDataSourceStatusEventArgs.cs
- TransformCryptoHandle.cs
- RuleProcessor.cs
- DSACryptoServiceProvider.cs
- SiteOfOriginPart.cs
- Int64Storage.cs
- Membership.cs
- ClientOperation.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- SimpleApplicationHost.cs
- SqlDataSourceCustomCommandPanel.cs
- _CacheStreams.cs
- EmptyReadOnlyDictionaryInternal.cs
- StorageComplexPropertyMapping.cs
- TagPrefixInfo.cs
- PropertiesTab.cs
- ECDiffieHellmanCng.cs
- SchemaImporterExtensionElement.cs
- MouseEvent.cs
- DataGridCellAutomationPeer.cs
- FileIOPermission.cs
- XmlIlGenerator.cs
- HashCodeCombiner.cs
- InstallerTypeAttribute.cs
- CodeTypeOfExpression.cs
- CorePropertiesFilter.cs
- MasterPageCodeDomTreeGenerator.cs
- AgileSafeNativeMemoryHandle.cs
- DrawingContext.cs
- QilBinary.cs
- InstanceCompleteException.cs
- FixedFlowMap.cs
- NaturalLanguageHyphenator.cs
- XmlSchemaGroupRef.cs
- PropertyEmitter.cs
- TemplatePropertyEntry.cs
- _IPv4Address.cs
- XmlAnyElementAttributes.cs
- SchemaObjectWriter.cs
- CodeIdentifier.cs
- XmlSchemaSimpleContent.cs
- TabOrder.cs
- EndpointAddressProcessor.cs
- DispatcherExceptionFilterEventArgs.cs
- SchemaTypeEmitter.cs
- Quad.cs
- ImportContext.cs
- SmtpReplyReader.cs
- ClientTargetCollection.cs
- DependencyPropertyHelper.cs
- CombinedTcpChannel.cs
- BezierSegment.cs
- DefaultMemberAttribute.cs
- PathFigureCollection.cs
- ellipse.cs
- DocobjHost.cs
- DragDrop.cs
- RoleManagerModule.cs
- Light.cs
- TypeUtil.cs