1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System
.Diagnostics
;
9 internal sealed class MemoryDebugView
<T
>
11 private readonly ReadOnlyMemory
<T
> _memory
;
13 public MemoryDebugView(Memory
<T
> memory
)
18 public MemoryDebugView(ReadOnlyMemory
<T
> memory
)
23 [DebuggerBrowsable(DebuggerBrowsableState
.RootHidden
)]
24 public T
[] Items
=> _memory
.ToArray();