Refactoring the ARM Hardware Intrinsics based on the latest design decisions. (#26895)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / MemoryDebugView.cs
blob6ab6e5065cf38417720ac72c764b8f643dbdb0a4
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;
7 namespace System
9 internal sealed class MemoryDebugView<T>
11 private readonly ReadOnlyMemory<T> _memory;
13 public MemoryDebugView(Memory<T> memory)
15 _memory = memory;
18 public MemoryDebugView(ReadOnlyMemory<T> memory)
20 _memory = memory;
23 [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
24 public T[] Items => _memory.ToArray();