<PackageReference Include="System.Text.Json" Version="10.0.0-preview.2.25163.2" />

DictionaryValueCollectionDebugView<TKey, TValue>

sealed class DictionaryValueCollectionDebugView<TKey, TValue>
using System.Diagnostics; namespace System.Collections.Generic { internal sealed class DictionaryValueCollectionDebugView<TKey, TValue> { private readonly ICollection<TValue> _collection; [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public TValue[] Items { get { TValue[] array = new TValue[_collection.Count]; _collection.CopyTo(array, 0); return array; } } public DictionaryValueCollectionDebugView(ICollection<TValue> collection) { if (collection == null) throw new ArgumentNullException("collection"); _collection = collection; } } }