Exemple #1
0
 public override Card?ReadJson(JsonReader reader, Type objectType, Card?existingValue, bool hasExistingValue,
                               JsonSerializer serializer) =>
 CardParser.TryParseShortCard(((string)reader.Value)?.ToLowerInvariant(), out var card)
         ? card
         : (Card?)null;
Exemple #2
0
 public override Card ReadJson(JsonReader reader, Type objectType, Card existingValue, bool hasExistingValue,
                               JsonSerializer serializer) =>
 CardParser.ParseShortCard(((string)reader.Value)?.ToLowerInvariant());