Exemplo n.º 1
0
 public AbstractDictionaryConverter(JsonSerializerOptions options)
 {
     _keyConverter      = options.GetDictionaryKeyConverterRegistry().GetDictionaryKeyConverter <TK>();
     _valueConverter    = (JsonConverter <TV>)options.GetConverter(typeof(TV));
     _referenceHandling = typeof(TV).IsStruct() ? ReferenceHandling.Default : options.GetReferenceHandling();
 }
Exemplo n.º 2
0
 public AbstractDictionaryConverter(JsonSerializerOptions options)
 {
     _keyConverter   = options.GetDictionaryKeyConverterRegistry().GetDictionaryKeyConverter <TK>();
     _valueConverter = (JsonConverter <TV>)options.GetConverter(typeof(TV));
 }