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;
}
}
}