合并 System.Threading.Tasks.NET35
智能大石头 authored at 2023-03-16 23:32:48
387.00 B
X
using System.Diagnostics;

namespace System.Collections;

internal sealed class CollectionDebuggerView
{
	private readonly ICollection c;

	[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
	public object[] Items
	{
		get
		{
			object[] array = new object[c.Count];
			c.CopyTo(array, 0);
			return array;
		}
	}

	public CollectionDebuggerView(ICollection col)
	{
		c = col;
	}
}