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
- mda.cs
- ClientTargetCollection.cs
- GeometryDrawing.cs
- XmlQueryType.cs
- FontDialog.cs
- ImageUrlEditor.cs
- NumericUpDownAccelerationCollection.cs
- TracedNativeMethods.cs
- AttachedProperty.cs
- EditorZone.cs
- Adorner.cs
- CurrencyWrapper.cs
- DataGridViewTextBoxCell.cs
- IISUnsafeMethods.cs
- DateTimeConverter.cs
- NestedContainer.cs
- EmissiveMaterial.cs
- Bezier.cs
- KnownTypesProvider.cs
- XmlSchemaFacet.cs
- ObjectMemberMapping.cs
- WinFormsSpinner.cs
- IdentitySection.cs
- WindowsListBox.cs
- metadatamappinghashervisitor.cs
- StorageComplexTypeMapping.cs
- RelativeSource.cs
- PeerPresenceInfo.cs
- RootBrowserWindowAutomationPeer.cs
- DateTimeSerializationSection.cs
- ListItemConverter.cs
- Span.cs
- WebServiceReceive.cs
- DataList.cs
- TrustSection.cs
- TreeSet.cs
- FileDialog_Vista.cs
- VisualStates.cs
- Version.cs
- PropertyDescriptor.cs
- ReadOnlyDictionary.cs
- AnchoredBlock.cs
- ComponentResourceKeyConverter.cs
- ConstructorNeedsTagAttribute.cs
- QEncodedStream.cs
- XPathSelectionIterator.cs
- IPAddress.cs
- DataGridCellClipboardEventArgs.cs
- RawContentTypeMapper.cs
- SqlDataSourceCache.cs
- PerspectiveCamera.cs
- TextEditorSelection.cs
- UIElementAutomationPeer.cs
- Selection.cs
- DataGridViewHitTestInfo.cs
- SvcMapFile.cs
- SafeNativeMethods.cs
- Schema.cs
- AppDomainAttributes.cs
- TextElementEditingBehaviorAttribute.cs
- UnsafeNativeMethods.cs
- OLEDB_Util.cs
- FigureParagraph.cs
- Win32MouseDevice.cs
- WebControl.cs
- securitymgrsite.cs
- CharAnimationUsingKeyFrames.cs
- Types.cs
- MemberDomainMap.cs
- WindowsTooltip.cs
- LabelEditEvent.cs
- XhtmlBasicPhoneCallAdapter.cs
- ComponentManagerBroker.cs
- AsynchronousChannel.cs
- RC2CryptoServiceProvider.cs
- QuaternionAnimation.cs
- BasicExpandProvider.cs
- CodeTypeDelegate.cs
- WmpBitmapEncoder.cs
- PeerReferralPolicy.cs
- WebSysDefaultValueAttribute.cs
- Geometry3D.cs
- Collection.cs
- LockCookie.cs
- ColumnCollection.cs
- WebContentFormatHelper.cs
- WebPartTransformerAttribute.cs
- AsymmetricSecurityBindingElement.cs
- XmlSchemaInclude.cs
- AncestorChangedEventArgs.cs
- AppDomainAttributes.cs
- RichTextBox.cs
- ScalarType.cs
- Transform3DGroup.cs
- SynchronizationLockException.cs
- DetailsViewDeleteEventArgs.cs
- CodeTypeMember.cs
- ChannelOptions.cs
- Content.cs
- StringUtil.cs