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
- XmlAnyElementAttributes.cs
- UriExt.cs
- FileVersionInfo.cs
- InternalPermissions.cs
- SmiMetaData.cs
- DataGridViewComboBoxEditingControl.cs
- AudioLevelUpdatedEventArgs.cs
- CreateUserWizardStep.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- OdbcConnectionHandle.cs
- StoreItemCollection.cs
- MultiView.cs
- CollectionViewGroup.cs
- BuilderElements.cs
- LoadRetryStrategyFactory.cs
- MappingItemCollection.cs
- StructuredTypeInfo.cs
- ColumnCollection.cs
- DeclaredTypeValidator.cs
- ModuleElement.cs
- ChannelServices.cs
- ContainerFilterService.cs
- TextServicesContext.cs
- BamlMapTable.cs
- streamingZipPartStream.cs
- _HeaderInfo.cs
- HtmlWindowCollection.cs
- StrongNameKeyPair.cs
- ResolveNextArgumentWorkItem.cs
- CompleteWizardStep.cs
- UrlMapping.cs
- InputElement.cs
- PersonalizablePropertyEntry.cs
- ConfigurationException.cs
- WindowsListViewSubItem.cs
- RegexCode.cs
- TreeWalkHelper.cs
- FileNotFoundException.cs
- NavigationPropertyEmitter.cs
- Blend.cs
- XmlArrayAttribute.cs
- Point4DConverter.cs
- StatusStrip.cs
- GZipStream.cs
- TdsParserStaticMethods.cs
- NoneExcludedImageIndexConverter.cs
- MessageQueue.cs
- Int32Rect.cs
- MessageSmuggler.cs
- UnaryNode.cs
- FacetChecker.cs
- AudioSignalProblemOccurredEventArgs.cs
- WebPartDeleteVerb.cs
- AsymmetricKeyExchangeFormatter.cs
- SystemGatewayIPAddressInformation.cs
- EllipseGeometry.cs
- DispatcherEventArgs.cs
- OpenTypeLayout.cs
- ShimAsPublicXamlType.cs
- ADMembershipProvider.cs
- DateTimeValueSerializerContext.cs
- BuildProvidersCompiler.cs
- PropertiesTab.cs
- QueryInterceptorAttribute.cs
- _PooledStream.cs
- TreeNodeStyle.cs
- ColorTransform.cs
- InitializingNewItemEventArgs.cs
- DataGridColumnCollection.cs
- ListControlDataBindingHandler.cs
- WebRequestModuleElementCollection.cs
- JavaScriptSerializer.cs
- LinqDataSource.cs
- FullTextLine.cs
- ResourceReferenceKeyNotFoundException.cs
- AnnotationHighlightLayer.cs
- AutomationPatternInfo.cs
- SQLBoolean.cs
- WebPartEditorOkVerb.cs
- AssemblyResourceLoader.cs
- ArraySegment.cs
- SqlConnection.cs
- DataGridViewSelectedRowCollection.cs
- CodeDelegateCreateExpression.cs
- RoutedUICommand.cs
- AuthenticationSection.cs
- PropertyReferenceSerializer.cs
- ElementNotAvailableException.cs
- DoWorkEventArgs.cs
- HandledMouseEvent.cs
- GlyphInfoList.cs
- ConfigurationUtility.cs
- HwndSourceKeyboardInputSite.cs
- MailHeaderInfo.cs
- odbcmetadatafactory.cs
- ValidationErrorEventArgs.cs
- Animatable.cs
- WebPartHelpVerb.cs
- NonBatchDirectoryCompiler.cs
- DbExpressionBuilder.cs