OrderedDictionaryDebugView<TKey, TValue>
using System.Diagnostics;
namespace System.Collections.Generic
{
internal sealed class OrderedDictionaryDebugView<TKey, TValue>
{
private readonly System.Collections.Generic.OrderedDictionary<TKey, TValue> _dictionary;
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public KeyValuePair<TKey, TValue>[] Items {
get {
KeyValuePair<TKey, TValue>[] array = new KeyValuePair<TKey, TValue>[_dictionary.Count];
((ICollection<KeyValuePair<TKey, TValue>>)_dictionary).CopyTo(array, 0);
return array;
}
}
public OrderedDictionaryDebugView(System.Collections.Generic.OrderedDictionary<TKey, TValue> dictionary)
{
System.ExceptionPolyfills.ThrowIfNull(dictionary, "dictionary");
_dictionary = dictionary;
}
}
}