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
- BuildProviderUtils.cs
- PathTooLongException.cs
- Configuration.cs
- IndividualDeviceConfig.cs
- DataGridViewRow.cs
- EntitySet.cs
- ClosableStream.cs
- Literal.cs
- PeerTransportListenAddressValidatorAttribute.cs
- BufferedMessageData.cs
- CallContext.cs
- BrowsableAttribute.cs
- SqlNotificationRequest.cs
- PageContentAsyncResult.cs
- FileEnumerator.cs
- StringConverter.cs
- IgnoreFileBuildProvider.cs
- IdentityNotMappedException.cs
- TreeViewAutomationPeer.cs
- ISFClipboardData.cs
- SafeNativeMethods.cs
- MarkupCompilePass2.cs
- XsdCachingReader.cs
- LifetimeMonitor.cs
- RawStylusSystemGestureInputReport.cs
- PropertyPath.cs
- util.cs
- LinqDataSourceValidationException.cs
- FontStyleConverter.cs
- BamlResourceContent.cs
- ProviderUtil.cs
- TypeValidationEventArgs.cs
- InputLanguageManager.cs
- QueryAsyncResult.cs
- OdbcFactory.cs
- SqlDataSourceQueryConverter.cs
- XmlElementAttribute.cs
- ManipulationPivot.cs
- ExtendedTransformFactory.cs
- TypedElement.cs
- storagemappingitemcollection.viewdictionary.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TransformValueSerializer.cs
- ToolStripMenuItem.cs
- IsolatedStoragePermission.cs
- DesignerProperties.cs
- BitmapEffectvisualstate.cs
- HasCopySemanticsAttribute.cs
- WindowsListViewGroupSubsetLink.cs
- PerformanceCounterPermissionAttribute.cs
- RuleElement.cs
- Line.cs
- SingleAnimationUsingKeyFrames.cs
- WebPartConnectVerb.cs
- InternalConfigHost.cs
- SnapLine.cs
- ForeignKeyConstraint.cs
- DeclaredTypeElement.cs
- Configuration.cs
- PrintDocument.cs
- GridProviderWrapper.cs
- MarkupExtensionReturnTypeAttribute.cs
- Guid.cs
- UnknownBitmapEncoder.cs
- CalendarAutomationPeer.cs
- PerfService.cs
- AsyncStreamReader.cs
- CompilerState.cs
- WebPartTransformerAttribute.cs
- ResourceIDHelper.cs
- FlagsAttribute.cs
- ChangeNode.cs
- Animatable.cs
- JavaScriptString.cs
- CodeGotoStatement.cs
- EncryptedKeyIdentifierClause.cs
- WindowsTooltip.cs
- PropertyInfoSet.cs
- XmlValidatingReaderImpl.cs
- DependencyPropertyDescriptor.cs
- MatrixCamera.cs
- ExpressionsCollectionEditor.cs
- CorrelationKeyCalculator.cs
- Bind.cs
- WebBrowserDesigner.cs
- LoginUtil.cs
- DataColumn.cs
- VirtualDirectoryMappingCollection.cs
- Attribute.cs
- TextControl.cs
- SplineKeyFrames.cs
- OnOperation.cs
- DbConnectionPoolGroupProviderInfo.cs
- EntityDataSourceMemberPath.cs
- MutexSecurity.cs
- StdValidatorsAndConverters.cs
- BufferedStream.cs
- KoreanCalendar.cs
- CLRBindingWorker.cs
- DatatypeImplementation.cs