ResourceKey.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / 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.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK