diff options
Diffstat (limited to 'Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs')
| -rw-r--r-- | Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs new file mode 100644 index 0000000..77498fd --- /dev/null +++ b/Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs @@ -0,0 +1,28 @@ +using System; + +namespace Gestor.Model.Attributes; + +[AttributeUsage(AttributeTargets.All)] +public class WidthAttribute : Attribute +{ + public string Tipo { get; set; } + + public virtual string Description => DescriptionValue; + + protected string DescriptionValue + { + get + { + return Tipo; + } + set + { + Tipo = value; + } + } + + public WidthAttribute(string tipo) + { + Tipo = tipo; + } +} |