using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace BililiveRecorder.Flv.Amf { internal sealed class AmfDictionaryDebugView { private readonly IDictionary _dict; public AmfDictionaryDebugView(IDictionary dictionary) { this._dict = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); } [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public KeyValuePairDebugView[] Items => this._dict.Select(x => new KeyValuePairDebugView(x.Key, x.Value)).ToArray(); } }