From 2b30a8b5e9ccea471476c9b545f431457301aafa Mon Sep 17 00:00:00 2001 From: wagesj45 Date: Wed, 22 Jul 2026 23:50:37 -0500 Subject: [PATCH] Add EnumerationIconAttribute for associating enums with font-awesome icons --- CapyKit/Attributes/EnumerationIconAttribute.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CapyKit/Attributes/EnumerationIconAttribute.cs diff --git a/CapyKit/Attributes/EnumerationIconAttribute.cs b/CapyKit/Attributes/EnumerationIconAttribute.cs new file mode 100644 index 0000000..55b7409 --- /dev/null +++ b/CapyKit/Attributes/EnumerationIconAttribute.cs @@ -0,0 +1,17 @@ +namespace CapyKit.Attributes; + +/// Attribute describing the associated font-awesome icon of an parameter. +[AttributeUsage(AttributeTargets.Field)] +public class EnumerationIconAttribute : Attribute +{ + /// Gets or sets the description of the enumeration. + /// The description. + public string Icon { get; private set; } + + /// Constructor. + /// The icon associated with the enumeration. + public EnumerationIconAttribute(string icon) + { + this.Icon = icon; + } +} \ No newline at end of file