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