예제 #1
0
        private JsonConverter GetRuntimeConverter(Type runtimeType, JsonSerializerOptions options)
        {
            JsonConverter runtimeConverter = options.GetDictionaryKeyConverter(runtimeType);

            if (runtimeConverter == this)
            {
                ThrowHelper.ThrowNotSupportedException_DictionaryKeyTypeNotSupported(runtimeType);
            }

            return(runtimeConverter);
        }