Esempio n. 1
0
 public override FSharpMap <string, T> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
 {
     try
     {
         return(MapModule.OfSeq(reader.DeserializeMapAsTuples <T>(options)));
     }
     catch (Exception ex)
     {
         throw new JsonException(
                   $"Error when deserialize FSharpMap<string, {typeof(T).Name}>", ex);
     }
 }