Skip to content

Commit fcdd356

Browse files
committed
Add [DebuggerDisplay] to ReadOnlyObservableGroup<,>
1 parent 224b334 commit fcdd356

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CommunityToolkit.Mvvm/Collections/ReadOnlyObservableGroup{TKey,TElement}.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System.Collections.ObjectModel;
6+
using System.Diagnostics;
67

78
namespace CommunityToolkit.Mvvm.Collections;
89

@@ -11,6 +12,7 @@ namespace CommunityToolkit.Mvvm.Collections;
1112
/// </summary>
1213
/// <typeparam name="TKey">The type of the group key.</typeparam>
1314
/// <typeparam name="TElement">The type of elements in the group.</typeparam>
15+
[DebuggerDisplay("Key = {Key}, Count = {Count}")]
1416
public sealed class ReadOnlyObservableGroup<TKey, TElement> : ReadOnlyObservableCollection<TElement>, IReadOnlyObservableGroup<TKey, TElement>
1517
where TKey : notnull
1618
{

0 commit comments

Comments
 (0)