| File: System\Windows\ResourceKey.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /***************************************************************************\ * * * Base class for various types of key objects to use in resource dictionaries. * * \***************************************************************************/ using System.Reflection; using System.Windows.Markup; namespace System.Windows { /// <summary> /// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// </summary> [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { /// <summary> /// Used to determine where to look for the resource dictionary that holds this resource. /// </summary> public abstract Assembly Assembly { get; } /// <summary> /// Return this object. ResourceKeys are typically used as a key in a dictionary. /// </summary> public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } }