using System; namespace Chernobyl.Attribution { /// /// Applies a type based ID on an attributable item. /// [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class TypeAttribute : Attribute, IKeyAttribute { /// /// Initializes a new instance of the class. /// /// The key of the item attributed. public TypeAttribute(Type key) { Key = key; } /// /// The key of the item attributed. /// public Type Key { get; private set; } /// /// The key of the item attributed. /// object IKeyAttribute.Key { get { return Key; } } } }