File: System\Threading\Channels\IDebugEnumerator.cs | Web Access |
Project: src\src\libraries\System.Threading.Channels\src\System.Threading.Channels.csproj (System.Threading.Channels) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; namespace System.Threading.Channels { internal interface IDebugEnumerable<T> { IEnumerator<T> GetEnumerator(); } internal sealed class DebugEnumeratorDebugView<T>(IDebugEnumerable<T> enumerable) { [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)] public T[] Items { get; } = [.. enumerable]; } } |