Files
2026-08-27 10:56:38 -06:00

22 lines
379 B
C#

using System.Diagnostics;
namespace System;
internal sealed class MemoryDebugView<T>
{
private readonly ReadOnlyMemory<T> _memory;
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public T[] Items => _memory.ToArray();
public MemoryDebugView(Memory<T> memory)
{
_memory = memory;
}
public MemoryDebugView(ReadOnlyMemory<T> memory)
{
_memory = memory;
}
}