namespace Terminal.Gui.Examples; /// /// Defines a category for an example application. /// Apply this attribute to an assembly to associate it with one or more categories for organization and filtering. /// /// /// /// Multiple instances of this attribute can be applied to a single assembly to associate the example /// with multiple categories. /// /// /// /// /// [assembly: ExampleCategory("Text and Formatting")] /// [assembly: ExampleCategory("Controls")] /// /// [AttributeUsage (AttributeTargets.Assembly, AllowMultiple = true)] public class ExampleCategoryAttribute : System.Attribute { /// /// Initializes a new instance of the class. /// /// The category name. public ExampleCategoryAttribute (string category) { Category = category; } /// /// Gets or sets the category name. /// public string Category { get; set; } }