using System; using System.Runtime.CompilerServices; namespace Gestor.Model.Attributes { [AttributeUsage(AttributeTargets.All)] public class TipoAttribute : Attribute { public virtual string Description { get { return this.DescriptionValue; } } protected string DescriptionValue { get { return this.Tipo; } set { this.Tipo = value; } } public string Tipo { get; set; } public TipoAttribute(string tipo) { this.Tipo = tipo; } } }