Files
PURErat-crack-scode/decompiled/Libraries/microsoft.codeanalysis/Microsoft.CodeAnalysis.Collections.Internal/DictionaryKeyCollectionDebugView.cs
T
2026-08-27 10:56:38 -06:00

27 lines
603 B
C#

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