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.EventTypes/EventContent.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LibMatrix.EventTypes') diff --git a/LibMatrix.EventTypes/EventContent.cs b/LibMatrix.EventTypes/EventContent.cs index 07f56e2..d612e44 100644 --- a/LibMatrix.EventTypes/EventContent.cs +++ b/LibMatrix.EventTypes/EventContent.cs @@ -1,3 +1,4 @@ +using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Text.Json; using System.Text.Json.Nodes; @@ -5,6 +6,7 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes; +[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global", Justification = "These get instantiated via reflection")] public abstract class EventContent { [JsonExtensionData] public Dictionary? AdditionalData { get; set; } = []; -- cgit 1.5.1