From 0440c722a221b8068bbf388c1c0c51f0faff0451 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 14:17:46 -0300 Subject: some dlls --- .../Gestor.Model.Attributes/LogAttribute.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs (limited to 'Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs') diff --git a/Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs new file mode 100644 index 0000000..02c0950 --- /dev/null +++ b/Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs @@ -0,0 +1,28 @@ +using System; + +namespace Gestor.Model.Attributes; + +[AttributeUsage(AttributeTargets.All)] +public class LogAttribute : Attribute +{ + public bool Log { get; set; } + + public virtual bool Description => DescriptionValue; + + protected bool DescriptionValue + { + get + { + return Log; + } + set + { + Log = value; + } + } + + public LogAttribute(bool log = true) + { + Log = log; + } +} -- cgit v1.2.3