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
- SuppressMessageAttribute.cs
- RootProfilePropertySettingsCollection.cs
- PersonalizationStateQuery.cs
- ListView.cs
- ArrangedElementCollection.cs
- ExpressionBindingCollection.cs
- ConstructorBuilder.cs
- RootBrowserWindow.cs
- TransformedBitmap.cs
- OdbcTransaction.cs
- GridEntryCollection.cs
- UndoEngine.cs
- ListBoxDesigner.cs
- FileSystemWatcher.cs
- QueryExpr.cs
- ISCIIEncoding.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- HttpRequest.cs
- StringAttributeCollection.cs
- ObjectQueryProvider.cs
- X500Name.cs
- CompileXomlTask.cs
- FacetDescription.cs
- ParamArrayAttribute.cs
- PermissionSetEnumerator.cs
- IISMapPath.cs
- HeaderCollection.cs
- CollectionChange.cs
- NullableIntMinMaxAggregationOperator.cs
- AttributeXamlType.cs
- Literal.cs
- PropertyDescriptor.cs
- BindingWorker.cs
- SrgsDocument.cs
- MessageSecurityOverHttpElement.cs
- WindowInteractionStateTracker.cs
- HTMLTagNameToTypeMapper.cs
- ConsoleTraceListener.cs
- ColumnResult.cs
- DownloadProgressEventArgs.cs
- WebReferencesBuildProvider.cs
- ActivationArguments.cs
- InstalledFontCollection.cs
- MatchingStyle.cs
- TeredoHelper.cs
- DataViewManager.cs
- ZipFileInfo.cs
- MessageQueuePermissionEntry.cs
- WindowsNonControl.cs
- PathSegmentCollection.cs
- PrinterResolution.cs
- GraphicsPath.cs
- SynchronizationLockException.cs
- ExtenderProvidedPropertyAttribute.cs
- Membership.cs
- InfoCard.cs
- MenuRendererClassic.cs
- TableCellAutomationPeer.cs
- PEFileEvidenceFactory.cs
- FixUpCollection.cs
- BinaryKeyIdentifierClause.cs
- DataRecord.cs
- StrokeSerializer.cs
- ThemeDirectoryCompiler.cs
- MultipleViewPattern.cs
- DataContractSerializerServiceBehavior.cs
- XmlTextWriter.cs
- SystemIPInterfaceProperties.cs
- CodeEntryPointMethod.cs
- HttpHandlerActionCollection.cs
- ReadWriteObjectLock.cs
- ComponentConverter.cs
- BamlLocalizationDictionary.cs
- LineServicesRun.cs
- TraceListener.cs
- RoleGroupCollection.cs
- ChildrenQuery.cs
- path.cs
- TemplateControl.cs
- BitmapEncoder.cs
- ConfigXmlWhitespace.cs
- TraceHandlerErrorFormatter.cs
- DataShape.cs
- DataSet.cs
- AuthenticateEventArgs.cs
- HandleExceptionArgs.cs
- NotifyParentPropertyAttribute.cs
- ControlDesignerState.cs
- PolyBezierSegment.cs
- DelegatingMessage.cs
- TraceXPathNavigator.cs
- UiaCoreApi.cs
- LineBreak.cs
- StrongName.cs
- DodSequenceMerge.cs
- ContactManager.cs
- CornerRadiusConverter.cs
- ContentValidator.cs
- GZipStream.cs
- CqlQuery.cs