8 references to GetCompatibleGenericInterface
System.Text.Json (8)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs (1)
33
=> type.
GetCompatibleGenericInterface
(typeof(IAsyncEnumerable<>));
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (6)
77
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IDictionary<,>))) != null)
85
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IReadOnlyDictionary<,>))) != null)
99
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IList<>))) != null)
105
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(ISet<>))) != null)
111
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(ICollection<>))) != null)
141
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IEnumerable<>))) != null)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (1)
120
Type underlyingIDictionaryType = jsonPropertyInfo.PropertyType.
GetCompatibleGenericInterface
(typeof(IDictionary<,>))!;