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
- TypeToArgumentTypeConverter.cs
- MarkupCompilePass2.cs
- EnumValidator.cs
- SqlExpander.cs
- EntityTransaction.cs
- HttpHeaderCollection.cs
- SByte.cs
- ComponentChangedEvent.cs
- DynamicResourceExtension.cs
- altserialization.cs
- EventLog.cs
- GenericTextProperties.cs
- SQLBinary.cs
- X509DefaultServiceCertificateElement.cs
- VectorAnimation.cs
- SpeechSeg.cs
- DateTime.cs
- ThreadPool.cs
- ReferentialConstraint.cs
- Main.cs
- SchemaLookupTable.cs
- SoapUnknownHeader.cs
- ReflectEventDescriptor.cs
- IRCollection.cs
- XmlSchemaComplexContentRestriction.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- SelectionRange.cs
- StructuralComparisons.cs
- DocumentGrid.cs
- SrgsText.cs
- serverconfig.cs
- OleDbCommandBuilder.cs
- HitTestFilterBehavior.cs
- InfoCardService.cs
- MailSettingsSection.cs
- AmbientProperties.cs
- Stack.cs
- DependentList.cs
- LexicalChunk.cs
- TextParentUndoUnit.cs
- Triangle.cs
- QuaternionAnimation.cs
- XPathException.cs
- StylusDevice.cs
- WebPartCloseVerb.cs
- MaskedTextProvider.cs
- ToolStripSeparator.cs
- DbModificationCommandTree.cs
- ProfileProvider.cs
- CharAnimationUsingKeyFrames.cs
- DataGrid.cs
- WebControlAdapter.cs
- InvalidContentTypeException.cs
- IsolatedStorageFilePermission.cs
- ManualWorkflowSchedulerService.cs
- SelectorAutomationPeer.cs
- ResponseBodyWriter.cs
- WebPartCatalogCloseVerb.cs
- BadImageFormatException.cs
- DataComponentNameHandler.cs
- SchemaSetCompiler.cs
- EditorPartChrome.cs
- RepeatInfo.cs
- Speller.cs
- SecurityChannel.cs
- PeerResolverElement.cs
- IPHostEntry.cs
- PLINQETWProvider.cs
- CancellationHandler.cs
- AutomationElement.cs
- NullExtension.cs
- TimeIntervalCollection.cs
- Update.cs
- adornercollection.cs
- ColumnWidthChangingEvent.cs
- MenuItem.cs
- NodeFunctions.cs
- CompositeActivityCodeGenerator.cs
- ContainerVisual.cs
- RenderingBiasValidation.cs
- XhtmlBasicPhoneCallAdapter.cs
- TokenBasedSet.cs
- AppSettingsReader.cs
- PieceDirectory.cs
- EventArgs.cs
- FontCollection.cs
- IndividualDeviceConfig.cs
- bidPrivateBase.cs
- Trace.cs
- TitleStyle.cs
- EpmContentDeSerializer.cs
- ArraySortHelper.cs
- ImageConverter.cs
- TabControlAutomationPeer.cs
- ComponentSerializationService.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- StateBag.cs
- ScriptManagerProxy.cs
- DbParameterHelper.cs
- AttributeExtensions.cs