Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / ResourceKey.cs / 1 / 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
- SHA1CryptoServiceProvider.cs
- SqlIdentifier.cs
- DbException.cs
- HostingPreferredMapPath.cs
- Rect.cs
- ISFClipboardData.cs
- PublisherIdentityPermission.cs
- StorageMappingFragment.cs
- ObjectDataSourceStatusEventArgs.cs
- UIInitializationException.cs
- XmlTextEncoder.cs
- ToolStripItemBehavior.cs
- MeshGeometry3D.cs
- BindingListCollectionView.cs
- EtwTrace.cs
- ComboBoxItem.cs
- AppDomainProtocolHandler.cs
- Attributes.cs
- FormsAuthenticationModule.cs
- SamlSecurityToken.cs
- GenericXmlSecurityToken.cs
- MessageDroppedTraceRecord.cs
- SamlAuthenticationStatement.cs
- KeyEvent.cs
- FontSizeConverter.cs
- CheckedListBox.cs
- PartialClassGenerationTaskInternal.cs
- RawTextInputReport.cs
- DataListItemEventArgs.cs
- PropertyGridEditorPart.cs
- InternalUserCancelledException.cs
- UriWriter.cs
- StreamingContext.cs
- TransformDescriptor.cs
- BuildDependencySet.cs
- EntityDataSourceContextCreatingEventArgs.cs
- EntityCommandCompilationException.cs
- ReaderWriterLock.cs
- CodeIterationStatement.cs
- DependencyProperty.cs
- OutputScopeManager.cs
- UnsafeNativeMethodsCLR.cs
- DataGridViewCellLinkedList.cs
- MediaElementAutomationPeer.cs
- RootBrowserWindowAutomationPeer.cs
- DataGridColumnHeadersPresenter.cs
- MediaContextNotificationWindow.cs
- UnmanagedMemoryStream.cs
- ReadOnlyTernaryTree.cs
- SystemWebSectionGroup.cs
- NamespaceEmitter.cs
- DbConnectionPoolGroupProviderInfo.cs
- SrgsRuleRef.cs
- DataGridViewCellConverter.cs
- TdsValueSetter.cs
- ThumbAutomationPeer.cs
- FormatControl.cs
- RowToParametersTransformer.cs
- StructuralType.cs
- FreezableOperations.cs
- UndirectedGraph.cs
- SqlStream.cs
- XmlNodeWriter.cs
- DBSchemaTable.cs
- JsonFormatReaderGenerator.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RangeBase.cs
- DbConvert.cs
- FieldToken.cs
- XPathNodeInfoAtom.cs
- EntityWrapperFactory.cs
- StaticSiteMapProvider.cs
- FileStream.cs
- DataControlCommands.cs
- StandardBindingOptionalReliableSessionElement.cs
- HttpSysSettings.cs
- SoapServerMessage.cs
- COM2PictureConverter.cs
- BinaryWriter.cs
- TextDecorations.cs
- DispatchWrapper.cs
- ImageSource.cs
- TextAutomationPeer.cs
- ClaimTypes.cs
- MailWriter.cs
- SmiRecordBuffer.cs
- EarlyBoundInfo.cs
- IntegerFacetDescriptionElement.cs
- BinaryUtilClasses.cs
- AVElementHelper.cs
- ContentFileHelper.cs
- SessionStateModule.cs
- DataGridViewColumnEventArgs.cs
- PeerTransportListenAddressValidatorAttribute.cs
- SqlInternalConnectionTds.cs
- DbParameterCollectionHelper.cs
- TimeSpanConverter.cs
- ForwardPositionQuery.cs
- GroupItemAutomationPeer.cs
- GenericIdentity.cs