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
- StateMachineSubscriptionManager.cs
- Misc.cs
- FixUp.cs
- ContentWrapperAttribute.cs
- MergablePropertyAttribute.cs
- OdbcEnvironment.cs
- RequestTimeoutManager.cs
- FlowDocumentPage.cs
- WebConfigurationHostFileChange.cs
- OLEDB_Enum.cs
- TripleDES.cs
- Task.cs
- ZipIOLocalFileDataDescriptor.cs
- TrustLevelCollection.cs
- ListViewGroupConverter.cs
- HtmlInputReset.cs
- Quaternion.cs
- ObjectStateFormatter.cs
- EntityDataSourceDataSelection.cs
- SafeLocalMemHandle.cs
- DefaultProxySection.cs
- ObjectStateFormatter.cs
- SoundPlayer.cs
- ContainerControl.cs
- MsmqAppDomainProtocolHandler.cs
- Site.cs
- TextRenderer.cs
- WindowCollection.cs
- XmlUtf8RawTextWriter.cs
- SQLSingle.cs
- CustomAttributeFormatException.cs
- SchemaMapping.cs
- Errors.cs
- PriorityQueue.cs
- ControlBuilder.cs
- XmlReaderSettings.cs
- _UncName.cs
- IdentitySection.cs
- Html32TextWriter.cs
- ExecutionEngineException.cs
- LayoutInformation.cs
- TextCharacters.cs
- ToolboxItem.cs
- UInt32Converter.cs
- ScaleTransform.cs
- InkCollectionBehavior.cs
- AuthorizationRuleCollection.cs
- OrderedHashRepartitionEnumerator.cs
- XmlSchemaObjectTable.cs
- PasswordTextNavigator.cs
- Transform.cs
- HttpConfigurationContext.cs
- MenuItemCollection.cs
- Pen.cs
- ParserExtension.cs
- TimeSpanValidator.cs
- CharacterMetrics.cs
- XdrBuilder.cs
- Calendar.cs
- SiteMapSection.cs
- FormsAuthenticationUser.cs
- StyleBamlRecordReader.cs
- ServiceControllerDesigner.cs
- RewritingProcessor.cs
- WindowPatternIdentifiers.cs
- TextSelectionHelper.cs
- QualificationDataItem.cs
- _IPv4Address.cs
- OperatorExpressions.cs
- RequestQueue.cs
- Point3DValueSerializer.cs
- Library.cs
- CfgSemanticTag.cs
- SystemSounds.cs
- FormsAuthentication.cs
- SymmetricKeyWrap.cs
- AudioDeviceOut.cs
- ComPlusDiagnosticTraceSchemas.cs
- MailSettingsSection.cs
- WindowsRebar.cs
- MemberMaps.cs
- OdbcInfoMessageEvent.cs
- MemoryStream.cs
- SafePointer.cs
- TextDecoration.cs
- CodeDomConfigurationHandler.cs
- Documentation.cs
- MailHeaderInfo.cs
- AttachedProperty.cs
- RuleSettingsCollection.cs
- XmlILCommand.cs
- DependencyObject.cs
- EntityCommandCompilationException.cs
- PriorityItem.cs
- WindowManager.cs
- RegexMatch.cs
- TypedReference.cs
- ZipArchive.cs
- TcpTransportElement.cs
- CanonicalXml.cs