using System; using System.Runtime.CompilerServices; namespace Gestor.Model.Attributes { public class ForceLogAttribute : 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 ForceLogAttribute(bool log = true) { this.Log = log; } } }