using System; using System.Runtime.CompilerServices; namespace Gestor.Model.Attributes { [AttributeUsage(AttributeTargets.All)] public class LogAttribute : Attribute { public virtual bool Description { get { return this.DescriptionValue; } } protected bool DescriptionValue { get { return this.Log; } set { this.Log = value; } } public bool Log { get; set; } public LogAttribute(bool log = true) { this.Log = log; } } }