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
- ReflectionTypeLoadException.cs
- DBConcurrencyException.cs
- AbstractDataSvcMapFileLoader.cs
- TreeChangeInfo.cs
- Registry.cs
- ApplicationCommands.cs
- ResourceAttributes.cs
- TypeSystemProvider.cs
- ProviderCommandInfoUtils.cs
- StrongNameIdentityPermission.cs
- MouseCaptureWithinProperty.cs
- DataRowCollection.cs
- BitmapEffectInputData.cs
- UnmanagedBitmapWrapper.cs
- DbConnectionOptions.cs
- QueryResultOp.cs
- ListViewItem.cs
- ServiceRouteHandler.cs
- OraclePermissionAttribute.cs
- Privilege.cs
- JsonReader.cs
- WebBrowserDocumentCompletedEventHandler.cs
- panel.cs
- Crc32.cs
- ActionMessageFilter.cs
- WindowInteropHelper.cs
- GenericParameterDataContract.cs
- CodeNamespaceCollection.cs
- _Rfc2616CacheValidators.cs
- EditorZone.cs
- IndexOutOfRangeException.cs
- FileDialogPermission.cs
- TraceUtils.cs
- WindowAutomationPeer.cs
- _NativeSSPI.cs
- TextCollapsingProperties.cs
- Trace.cs
- DigitShape.cs
- ZipIOCentralDirectoryBlock.cs
- PageThemeBuildProvider.cs
- RelatedCurrencyManager.cs
- ArithmeticException.cs
- PlaceHolder.cs
- PrivilegeNotHeldException.cs
- CultureTable.cs
- Int16.cs
- Model3D.cs
- TypeDependencyAttribute.cs
- BasicBrowserDialog.cs
- DataGridViewBand.cs
- UnsettableComboBox.cs
- MappingException.cs
- EntityCommandExecutionException.cs
- ShaperBuffers.cs
- BitArray.cs
- GridViewSortEventArgs.cs
- AspNetHostingPermission.cs
- FixedFlowMap.cs
- ColorTransformHelper.cs
- ComNativeDescriptor.cs
- QueueProcessor.cs
- Transform3DGroup.cs
- OAVariantLib.cs
- StylusButton.cs
- DbProviderConfigurationHandler.cs
- ToolStripContentPanelDesigner.cs
- ItemsPanelTemplate.cs
- CultureTable.cs
- MimeTypeAttribute.cs
- DrawingBrush.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ConfigurationException.cs
- Emitter.cs
- StylusPlugin.cs
- BinaryNode.cs
- KeyboardDevice.cs
- WeakRefEnumerator.cs
- TableLayoutSettingsTypeConverter.cs
- TdsParserHelperClasses.cs
- NativeMethods.cs
- SynchronizedMessageSource.cs
- LicenseProviderAttribute.cs
- Point3DAnimation.cs
- ConnectionsZone.cs
- SqlDeflator.cs
- WebRequestModuleElementCollection.cs
- RSACryptoServiceProvider.cs
- __ConsoleStream.cs
- ScriptBehaviorDescriptor.cs
- DateTimeParse.cs
- DbProviderFactory.cs
- DocobjHost.cs
- VolatileResourceManager.cs
- ClaimComparer.cs
- TextCompositionEventArgs.cs
- TreeSet.cs
- DesignerTransactionCloseEvent.cs
- HotCommands.cs
- GlyphsSerializer.cs
- DataViewManagerListItemTypeDescriptor.cs