WinUI: Mittag.Aus nimmt JsonNode (origin-Stand kompilierte unter Windows nicht: CS1503/CS8121)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ public sealed record Zeitplan
|
||||
/// <summary>Mittagsband mit Pause: von–bis Uhrzeit, Laenge gewuerfelt (betrieb/zeitplan.py).</summary>
|
||||
public sealed record Mittag(string Von, string Bis, Spanne Dauer)
|
||||
{
|
||||
public static Mittag? Aus(JsonValue? v)
|
||||
public static Mittag? Aus(JsonNode? v)
|
||||
{
|
||||
if (v is not JsonObject o) return null;
|
||||
if (Json.TextVon(o["von"]) is not { Length: 5 } a) return null;
|
||||
|
||||
Reference in New Issue
Block a user