From 150c6b03003ca97192b65a274c5234b04e32b2ac Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 23 Jul 2025 09:03:42 +0200 Subject: Add debugger displays to summarise SummaryDataStructure and EventList, hide ClassNeverInstantiated warning for EventContent implementations --- LibMatrix/StateEvent.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LibMatrix/StateEvent.cs') diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs index af25805..aa755ef 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs @@ -1,4 +1,5 @@ using System.Collections.Frozen; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Text.Json; @@ -174,6 +175,7 @@ public class StateEventResponse : StateEvent { [JsonSerializable(typeof(ChunkedStateEventResponse))] internal partial class ChunkedStateEventResponseSerializerContext : JsonSerializerContext; +[DebuggerDisplay("{Events.Count} events")] public class EventList { public EventList() { } -- cgit 1.5.1