UiInfoAttribute

AttributeReferences
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)] public sealed class UiInfoAttribute : Attribute
Assign this attribute to types or values if they are associated with a detailed info text.

Constructors

UiInfoAttribute

#
public UiInfoAttribute(string info)
Create a new attribute.
info (string)

Properties

Info

#
public string Info { get; }
Gets the user-interface info.

Methods

GetInfo

#
public static string GetInfo(FieldInfo field)
Extract the info (if any) attached to the given field.
field (FieldInfo)

GetInfo

#
public static string GetInfo(Type type)
Extract the info (if any) attached to the given type.
type (Type)