ListOfAttribute
namespace Griff.Scenes;
public sealed class ListOfAttribute : RowsAttributeMarks a string as a list of one thing per row (no counts): each a name picked from what the project has, or one of a fixed few (Choices), in order, separated by commas or what Separator says.
Properties
Section titled “Properties”Choices
Section titled “Choices”public string[]? Choices { get; init; }The fixed few to pick from, when it’s those.
Colors
Section titled “Colors”public bool Colors { get; init; }They’re colors (“#F2607E #F2BC4B”).
Columns
Section titled “Columns”public override IReadOnlyList<RowColumn> Columns { get; }Example
Section titled “Example”public override string Example { get; }Joiner
Section titled “Joiner”protected override string Joiner { get; }public override string Noun { get; }Separator
Section titled “Separator”public string Separator { get; init; }What separates them: a comma unless it says (” “ for colors).
Separators
Section titled “Separators”protected override char[] Separators { get; }public string What { get; init; }What each is called: “Tool”, “Color”.
Methods
Section titled “Methods”Describe
Section titled “Describe”public override string Describe()public override IReadOnlyList<string>? Read(string row)public override string Write(IReadOnlyList<string> cells)