Adopted further C# 14 and .NET 10 features (#1158)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 14:04:10 +01:00
1 parent f649febf88
commit f0fa1411c8
40 files changed
+545 -56

No files matched your search

@@ -31,6 +31,9 @@ internal static class VisualBriefingJson
/// here even though the persisted manifest writes their member names. Unlike other options of the app,
/// these are not made read-only right here, because MWAIS0010 wants nothing but the object creation;
/// System.Text.Json locks them with their first use anyway.
///
/// The answers of the model are read with these options, too, which therefore refuse a field named
/// twice. That rule only concerns reading and changes no byte of the output.
/// </remarks>
[CanonicalJsonConfiguration]
internal static JsonSerializerOptions Canonical { get; } = new()
@@ -40,6 +43,7 @@ internal static class VisualBriefingJson
WriteIndented = false,
Encoder = JavaScriptEncoder.Default,
UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow,
AllowDuplicateProperties = false,
TypeInfoResolver = VisualBriefingCanonicalJsonContext.Default,
};