#nullable enable namespace Terminal.Gui; /// /// Implementation of for /// internal class StringHeld : IHeld { private readonly StringBuilder held = new (); public void ClearHeld () => held.Clear (); public string HeldToString () => held.ToString (); public IEnumerable HeldToObjects () => held.ToString ().Select (c => (object)c); public void AddToHeld (object o) => held.Append ((char)o); }