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
- AvTraceFormat.cs
- ValueChangedEventManager.cs
- StorageMappingFragment.cs
- ImageCollectionEditor.cs
- EditorPartCollection.cs
- MatrixKeyFrameCollection.cs
- AtlasWeb.Designer.cs
- FontStyles.cs
- SByteStorage.cs
- ResourceIDHelper.cs
- InvokeMemberBinder.cs
- TableLayoutRowStyleCollection.cs
- Console.cs
- WithStatement.cs
- HelpInfo.cs
- XsltSettings.cs
- DefaultMemberAttribute.cs
- XmlCharCheckingWriter.cs
- CommandEventArgs.cs
- Point4D.cs
- XmlHierarchyData.cs
- DefaultWorkflowLoaderService.cs
- CodeBinaryOperatorExpression.cs
- LabelExpression.cs
- List.cs
- HtmlInputButton.cs
- WebPartMenuStyle.cs
- CatalogPartChrome.cs
- UpdateCommandGenerator.cs
- Viewport2DVisual3D.cs
- PerspectiveCamera.cs
- OracleParameterCollection.cs
- SEHException.cs
- TextEvent.cs
- OnOperation.cs
- RuntimeIdentifierPropertyAttribute.cs
- __Filters.cs
- MediaTimeline.cs
- RuntimeCompatibilityAttribute.cs
- LineGeometry.cs
- MissingFieldException.cs
- ClientSideProviderDescription.cs
- WebPartsSection.cs
- DecoderExceptionFallback.cs
- Script.cs
- TemplateBamlRecordReader.cs
- XhtmlConformanceSection.cs
- TraceRecords.cs
- _ProxyRegBlob.cs
- VariableBinder.cs
- reliableinputsessionchannel.cs
- ExceptionNotification.cs
- ContentPropertyAttribute.cs
- RayHitTestParameters.cs
- ObjectDataSourceView.cs
- DropShadowEffect.cs
- TextBoxView.cs
- ValidatorCollection.cs
- HtmlInputText.cs
- InternalBufferManager.cs
- WebReferenceOptions.cs
- PnrpPermission.cs
- ListViewSelectEventArgs.cs
- UrlMapping.cs
- XmlILCommand.cs
- Button.cs
- DesignerActionListCollection.cs
- CodeAttributeArgument.cs
- ThreadSafeList.cs
- CollectionBase.cs
- InvokeHandlers.cs
- EraserBehavior.cs
- ServiceOperationWrapper.cs
- NonVisualControlAttribute.cs
- CookieParameter.cs
- RequestCachePolicy.cs
- DataGridRowsPresenter.cs
- CheckBoxRenderer.cs
- pingexception.cs
- PersonalizationEntry.cs
- BoolExpressionVisitors.cs
- WorkItem.cs
- ToolConsole.cs
- InitializationEventAttribute.cs
- HuffCodec.cs
- VolatileEnlistmentState.cs
- DecoderFallback.cs
- ProfileWorkflowElement.cs
- ImpersonateTokenRef.cs
- ExtensionWindowHeader.cs
- SortQuery.cs
- FrameworkContextData.cs
- XsdDuration.cs
- XmlAnyAttributeAttribute.cs
- EntityContainerEntitySet.cs
- FloaterBaseParaClient.cs
- CategoryAttribute.cs
- JsonGlobals.cs
- ListArgumentProvider.cs
- EventData.cs