Skip to content

Commit 00838f3

Browse files
authored
Add DebuggerDisplay to ListDictionaryInternal (#91224)
1 parent 602db78 commit 00838f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/Collections/ListDictionaryInternal.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
3+
using System.Diagnostics;
34
using System.Runtime.CompilerServices;
45

56
namespace System.Collections
@@ -8,6 +9,7 @@ namespace System.Collections
89
/// Implements <see cref="IDictionary"/> using a singly linked list.
910
/// Recommended for collections that typically include fewer than 10 items.
1011
/// </summary>
12+
[DebuggerDisplay("Count = {count}")]
1113
[Serializable]
1214
[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
1315
// Needs to be public to support binary serialization compatibility

0 commit comments

Comments
 (0)