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
- DataGridSortCommandEventArgs.cs
- NameValueConfigurationElement.cs
- PeerNameRecordCollection.cs
- SchemaImporterExtension.cs
- Stack.cs
- RegisteredScript.cs
- StatusBarItem.cs
- Parser.cs
- FixedDocumentPaginator.cs
- EditorZone.cs
- IIS7UserPrincipal.cs
- TemplateBindingExtension.cs
- PagerSettings.cs
- propertytag.cs
- AsymmetricSignatureFormatter.cs
- XmlILIndex.cs
- ToolStripPanelRow.cs
- FontWeights.cs
- BitmapEffectGroup.cs
- SubMenuStyle.cs
- SetterTriggerConditionValueConverter.cs
- WebContext.cs
- ShaderEffect.cs
- Restrictions.cs
- PngBitmapDecoder.cs
- BoundPropertyEntry.cs
- TreeNode.cs
- SerializationObjectManager.cs
- ColumnMap.cs
- UserPersonalizationStateInfo.cs
- QilStrConcatenator.cs
- ObjectDataSourceView.cs
- TextCompositionEventArgs.cs
- SystemThemeKey.cs
- ParentUndoUnit.cs
- MemberRelationshipService.cs
- AssertSection.cs
- WindowHideOrCloseTracker.cs
- ListControl.cs
- ParameterCollection.cs
- httpapplicationstate.cs
- Token.cs
- SignatureSummaryDialog.cs
- parserscommon.cs
- ContentPosition.cs
- WmpBitmapDecoder.cs
- ProcessManager.cs
- SqlPersonalizationProvider.cs
- KeyValuePairs.cs
- KeyedHashAlgorithm.cs
- SourceElementsCollection.cs
- WindowsSspiNegotiation.cs
- Command.cs
- RecognizerBase.cs
- DiagnosticsConfiguration.cs
- RepeatInfo.cs
- FontDialog.cs
- CancelAsyncOperationRequest.cs
- CodeRemoveEventStatement.cs
- HtmlInputButton.cs
- UriSection.cs
- DependencyObject.cs
- ToolStripMenuItem.cs
- TransformedBitmap.cs
- X509CertificateTrustedIssuerElement.cs
- HandledEventArgs.cs
- FormCollection.cs
- WebPartChrome.cs
- SqlInternalConnectionSmi.cs
- ContextBase.cs
- WorkflowApplicationIdleEventArgs.cs
- UInt64.cs
- PathFigureCollectionConverter.cs
- QilReplaceVisitor.cs
- UnsafeNativeMethods.cs
- BrowserDefinition.cs
- Base64WriteStateInfo.cs
- ValidationSummary.cs
- AssemblyCache.cs
- WebCategoryAttribute.cs
- relpropertyhelper.cs
- XdrBuilder.cs
- RegexWriter.cs
- DecoderBestFitFallback.cs
- EntityTransaction.cs
- GenericUI.cs
- RouteItem.cs
- DetailsViewDeleteEventArgs.cs
- DataControlPagerLinkButton.cs
- PropertyInformationCollection.cs
- SizeAnimationUsingKeyFrames.cs
- PrintEvent.cs
- CopyNodeSetAction.cs
- precedingsibling.cs
- InkPresenter.cs
- WorkflowItemsPresenter.cs
- JoinElimination.cs
- ApplicationContext.cs
- TemplateField.cs
- ImageAttributes.cs