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