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
- PlainXmlDeserializer.cs
- HeaderUtility.cs
- TextTrailingCharacterEllipsis.cs
- SafeNativeMethods.cs
- TextSpan.cs
- Point3DAnimationUsingKeyFrames.cs
- WSSecurityPolicy12.cs
- LayoutInformation.cs
- SizeConverter.cs
- LayoutEvent.cs
- WaitingCursor.cs
- SystemColors.cs
- BindingContext.cs
- ImmutableObjectAttribute.cs
- Socket.cs
- TypeUtil.cs
- WindowsTooltip.cs
- Visitor.cs
- HttpDictionary.cs
- WpfSharedBamlSchemaContext.cs
- EventLogTraceListener.cs
- TreeViewImageKeyConverter.cs
- DataGridViewElement.cs
- DeploymentSection.cs
- CalendarDay.cs
- HttpCapabilitiesEvaluator.cs
- SQLBinary.cs
- PathData.cs
- WriteableOnDemandPackagePart.cs
- PeerFlooder.cs
- Cursor.cs
- Drawing.cs
- ImageSourceConverter.cs
- Renderer.cs
- ToolStripItemTextRenderEventArgs.cs
- SimpleExpression.cs
- TextEditorTyping.cs
- ObjectDataSourceChooseTypePanel.cs
- TabControl.cs
- ResourcePermissionBase.cs
- VBIdentifierName.cs
- ProfessionalColorTable.cs
- ApplicationActivator.cs
- DataGridViewImageCell.cs
- TextRenderer.cs
- SectionInformation.cs
- ObjectCacheHost.cs
- Rules.cs
- SizeChangedEventArgs.cs
- BindingBase.cs
- NetworkInterface.cs
- OutgoingWebRequestContext.cs
- COM2Properties.cs
- FlatButtonAppearance.cs
- ErrorTableItemStyle.cs
- TextElementEnumerator.cs
- BitmapCache.cs
- ResolveCriteriaApril2005.cs
- HttpStreamXmlDictionaryWriter.cs
- ProcessModule.cs
- ResourceExpressionBuilder.cs
- ReturnValue.cs
- EditorZoneDesigner.cs
- GregorianCalendar.cs
- WpfKnownType.cs
- FileStream.cs
- HybridDictionary.cs
- DecoratedNameAttribute.cs
- HwndSource.cs
- PointCollection.cs
- LiteralTextParser.cs
- SettingsAttributeDictionary.cs
- BorderGapMaskConverter.cs
- precedingsibling.cs
- XmlNodeChangedEventArgs.cs
- PageEventArgs.cs
- OpacityConverter.cs
- SignatureToken.cs
- CompositeCollection.cs
- UriSection.cs
- XmlnsDefinitionAttribute.cs
- ProfileBuildProvider.cs
- RegexGroupCollection.cs
- FormsAuthenticationUser.cs
- ButtonBase.cs
- RegistrationServices.cs
- AncestorChangedEventArgs.cs
- PagerSettings.cs
- SafeArchiveContext.cs
- SafeEventLogWriteHandle.cs
- InheritanceContextHelper.cs
- PackageDigitalSignature.cs
- EndpointDiscoveryMetadataCD1.cs
- TransactionOptions.cs
- ProtocolsSection.cs
- DebugHandleTracker.cs
- GeometryCombineModeValidation.cs
- SafeTimerHandle.cs
- GridViewDeletedEventArgs.cs
- ModelToObjectValueConverter.cs