namespace Terminal.Gui.Examples;
///
/// Defines metadata (Name and Description) for an example application.
/// Apply this attribute to an assembly to mark it as an example that can be discovered and run.
///
///
///
/// This attribute is used by the example discovery system to identify and describe standalone example programs.
/// Each example should have exactly one applied to its assembly.
///
///
///
///
/// [assembly: ExampleMetadata("Character Map", "Unicode character viewer and selector")]
///
///
[AttributeUsage (AttributeTargets.Assembly)]
public class ExampleMetadataAttribute : System.Attribute
{
///
/// Initializes a new instance of the class.
///
/// The display name of the example.
/// A brief description of what the example demonstrates.
public ExampleMetadataAttribute (string name, string description)
{
Name = name;
Description = description;
}
///
/// Gets or sets the display name of the example.
///
public string Name { get; set; }
///
/// Gets or sets a brief description of what the example demonstrates.
///
public string Description { get; set; }
}