Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PageAsyncTask.cs
- CssTextWriter.cs
- TableLayoutPanelCellPosition.cs
- Internal.cs
- AstNode.cs
- SystemIPInterfaceProperties.cs
- hwndwrapper.cs
- Material.cs
- UriScheme.cs
- DataGridViewRowPrePaintEventArgs.cs
- EventProxy.cs
- XamlTemplateSerializer.cs
- DataSetMappper.cs
- CreateUserWizardStep.cs
- SystemIPGlobalStatistics.cs
- EditorAttributeInfo.cs
- FixedSOMGroup.cs
- Font.cs
- EntitySetBase.cs
- Misc.cs
- AssemblySettingAttributes.cs
- AutomationEventArgs.cs
- RequestCacheValidator.cs
- CodeArrayIndexerExpression.cs
- IProvider.cs
- StyleXamlTreeBuilder.cs
- ValidatingCollection.cs
- ArgumentNullException.cs
- GenericXmlSecurityTokenAuthenticator.cs
- EUCJPEncoding.cs
- ItemCheckEvent.cs
- CodeNamespaceImport.cs
- FontDialog.cs
- SecurityHeaderLayout.cs
- DetailsViewRowCollection.cs
- TraceInternal.cs
- Stack.cs
- SR.cs
- HashMembershipCondition.cs
- ProjectionPathBuilder.cs
- ScrollBar.cs
- FragmentQueryProcessor.cs
- XpsLiterals.cs
- AnonymousIdentificationSection.cs
- VideoDrawing.cs
- DataKey.cs
- RelationshipFixer.cs
- BitmapData.cs
- ClockGroup.cs
- _HeaderInfo.cs
- ScriptDescriptor.cs
- CapabilitiesState.cs
- SHA512.cs
- NameObjectCollectionBase.cs
- XmlCharacterData.cs
- CheckBoxStandardAdapter.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- XsltInput.cs
- ViewLoader.cs
- DATA_BLOB.cs
- Region.cs
- ProcessModelInfo.cs
- EntityStoreSchemaGenerator.cs
- keycontainerpermission.cs
- DataTableMappingCollection.cs
- dbdatarecord.cs
- XmlBaseWriter.cs
- SoapParser.cs
- ReadOnlyNameValueCollection.cs
- AutoFocusStyle.xaml.cs
- ChangeDirector.cs
- XPathScanner.cs
- safelink.cs
- HostingMessageProperty.cs
- IntSecurity.cs
- InvalidComObjectException.cs
- ClientSponsor.cs
- NetworkInformationException.cs
- BookmarkUndoUnit.cs
- SimpleWorkerRequest.cs
- MenuItemAutomationPeer.cs
- DataSourceCache.cs
- AllMembershipCondition.cs
- String.cs
- SimpleTypesSurrogate.cs
- Viewport3DVisual.cs
- DataGridViewSortCompareEventArgs.cs
- DispatchRuntime.cs
- TryCatch.cs
- FragmentQueryProcessor.cs
- StateMachineWorkflow.cs
- TreeChangeInfo.cs
- TextBoxRenderer.cs
- Int16.cs
- DataView.cs
- ProfilePropertyNameValidator.cs
- FormViewPagerRow.cs
- JsonWriter.cs
- EventWaitHandle.cs
- OdbcConnectionPoolProviderInfo.cs