namespace UndoTree; internal enum CommandKind { Property, Indexer, ListItems, Action, Other, } internal sealed record UndoTreeCommandInfo(CommandKind Kind, object? Target, string TargetLabel, string Member, string Detail, UndoTreeChangeKey? Key, bool ChangesOwnership = false, IReadOnlyList? Added = null, string Path = "", string Before = "", string After = "", int AddedCount = 0, int RemovedCount = 0) { public IReadOnlyList Added { get; } = Added ?? []; public string Text => UndoTreeText.Join(TargetLabel, Member); }