예제 #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();
 }
예제 #2
0
 public AbstractDictionaryConverter(JsonSerializerOptions options)
 {
     _keyConverter   = options.GetDictionaryKeyConverterRegistry().GetDictionaryKeyConverter <TK>();
     _valueConverter = (JsonConverter <TV>)options.GetConverter(typeof(TV));
 }