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