Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ResourceKey.cs / 1305600 / ResourceKey.cs
/****************************************************************************\ * * File: ResourceKey.cs * * Base class for various types of key objects to use in resource dictionaries. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Reflection; using System.Windows.Markup; namespace System.Windows { ////// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { ////// Used to determine where to look for the resource dictionary that holds this resource. /// public abstract Assembly Assembly { get; } ////// Return this object. ResourceKeys are typically used as a key in a dictionary. /// public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ResourceKey.cs * * Base class for various types of key objects to use in resource dictionaries. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Reflection; using System.Windows.Markup; namespace System.Windows { ////// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { ////// Used to determine where to look for the resource dictionary that holds this resource. /// public abstract Assembly Assembly { get; } ////// Return this object. ResourceKeys are typically used as a key in a dictionary. /// public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } } // 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
- ReleaseInstanceMode.cs
- IdentitySection.cs
- InvariantComparer.cs
- PrintDocument.cs
- MeshGeometry3D.cs
- DockProviderWrapper.cs
- SdlChannelSink.cs
- RecipientInfo.cs
- FilePrompt.cs
- SynchronizedDispatch.cs
- PageContent.cs
- AsyncOperationLifetimeManager.cs
- ScrollData.cs
- SerialStream.cs
- TransformGroup.cs
- IIS7UserPrincipal.cs
- DbgUtil.cs
- TabItemWrapperAutomationPeer.cs
- OdbcDataReader.cs
- RequestQueryProcessor.cs
- HttpCapabilitiesSectionHandler.cs
- Splitter.cs
- SubpageParaClient.cs
- Assembly.cs
- DesignerToolStripControlHost.cs
- DynamicEntity.cs
- WebResponse.cs
- StylusCaptureWithinProperty.cs
- HtmlElementEventArgs.cs
- TagPrefixInfo.cs
- PasswordBoxAutomationPeer.cs
- KeysConverter.cs
- Delegate.cs
- CacheModeConverter.cs
- grammarelement.cs
- TextLineBreak.cs
- XmlNamedNodeMap.cs
- TreeView.cs
- TaiwanCalendar.cs
- RewritingProcessor.cs
- _emptywebproxy.cs
- Triplet.cs
- IBuiltInEvidence.cs
- TargetException.cs
- ConcurrentQueue.cs
- XmlEncodedRawTextWriter.cs
- HtmlElementErrorEventArgs.cs
- ControlAdapter.cs
- InfoCardSymmetricAlgorithm.cs
- ImportOptions.cs
- LayoutUtils.cs
- StylusCaptureWithinProperty.cs
- ConfigXmlComment.cs
- EncryptedKey.cs
- SessionStateContainer.cs
- _KerberosClient.cs
- SrgsNameValueTag.cs
- HttpCookie.cs
- PersonalizationProviderCollection.cs
- ClassGenerator.cs
- XmlSchemaSimpleTypeUnion.cs
- FontConverter.cs
- PartialTrustHelpers.cs
- DataTemplateSelector.cs
- ClientCredentials.cs
- RSAOAEPKeyExchangeDeformatter.cs
- hebrewshape.cs
- IItemContainerGenerator.cs
- EdgeProfileValidation.cs
- TextParaClient.cs
- StatusBar.cs
- UserNameSecurityTokenProvider.cs
- QuestionEventArgs.cs
- ResourcesBuildProvider.cs
- newinstructionaction.cs
- basecomparevalidator.cs
- ADConnectionHelper.cs
- HyperLinkField.cs
- SamlAttribute.cs
- ManipulationDelta.cs
- DataObjectEventArgs.cs
- BooleanProjectedSlot.cs
- XmlSchemaValidationException.cs
- HGlobalSafeHandle.cs
- DependencyPropertyKey.cs
- EditingCommands.cs
- OraclePermission.cs
- ADMembershipProvider.cs
- HelpProvider.cs
- TypeEnumerableViewSchema.cs
- FileIOPermission.cs
- Oid.cs
- PKCS1MaskGenerationMethod.cs
- MessageSecurityOverHttpElement.cs
- BaseParagraph.cs
- ResourceDictionaryCollection.cs
- Byte.cs
- ElementProxy.cs
- EmbeddedObject.cs
- HTMLTagNameToTypeMapper.cs