18 行
569 B
C#
18 行
569 B
C#
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<object>? Added = null, string Path = "", string Before = "", string After = "", int AddedCount = 0, int RemovedCount = 0)
|
|
{
|
|
public IReadOnlyList<object> Added { get; } = Added ?? [];
|
|
|
|
public string Text => UndoTreeText.Join(TargetLabel, Member);
|
|
}
|