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/NameAttribute.cs | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Gestor.Model/Model.Attributes/NameAttribute.cs (limited to 'Gestor.Model/Model.Attributes/NameAttribute.cs') diff --git a/Gestor.Model/Model.Attributes/NameAttribute.cs b/Gestor.Model/Model.Attributes/NameAttribute.cs new file mode 100644 index 0000000..fd04e69 --- /dev/null +++ b/Gestor.Model/Model.Attributes/NameAttribute.cs @@ -0,0 +1,40 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Gestor.Model.Attributes +{ + [AttributeUsage(AttributeTargets.All)] + public class NameAttribute : 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 NameAttribute(bool log = true) + { + this.Log = log; + } + } +} \ No newline at end of file -- cgit v1.2.3