Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.7.0-preview-776" />

 ImmutebleTreeDebugView<TValue>

class ImmutebleTreeDebugView<TValue>
using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; namespace Stashbox.Utils.Data.Immutable { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] internal class ImmutebleTreeDebugView<[System.Runtime.CompilerServices.Nullable(2)] TValue> { private readonly ImmutableTree<TValue> tree; [System.Runtime.CompilerServices.Nullable(new byte[] { 1, 0, 1 })] [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public ReadOnlyKeyValue<int, TValue>[] Items { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 1, 0, 1 })] get { return Enumerable.ToArray<ReadOnlyKeyValue<int, TValue>>(tree.Walk()); } } public ImmutebleTreeDebugView(ImmutableTree<TValue> tree) { this.tree = tree; } } }