From 674ca83ba9243a9e95a7568c797668dab6aee26a Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:35:25 -0300 Subject: feat: upload files --- Gestor.Model/Model.Attributes/LogAttribute.cs | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Gestor.Model/Model.Attributes/LogAttribute.cs (limited to 'Gestor.Model/Model.Attributes/LogAttribute.cs') diff --git a/Gestor.Model/Model.Attributes/LogAttribute.cs b/Gestor.Model/Model.Attributes/LogAttribute.cs new file mode 100644 index 0000000..ca9e763 --- /dev/null +++ b/Gestor.Model/Model.Attributes/LogAttribute.cs @@ -0,0 +1,40 @@ +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; + } + } +} \ No newline at end of file -- cgit v1.2.3