9 references to GetCompatibleGenericInterface
System.Text.Json (9)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs (1)
33
=> type.
GetCompatibleGenericInterface
(typeof(IAsyncEnumerable<>));
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (6)
78
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IDictionary<,>))) != null)
86
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IReadOnlyDictionary<,>))) != null)
100
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IList<>))) != null)
106
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(ISet<>))) != null)
112
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(ICollection<>))) != null)
142
else if ((actualTypeToConvert = typeToConvert.
GetCompatibleGenericInterface
(typeof(IEnumerable<>))) != null)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
123
Type? underlyingIDictionaryType = jsonPropertyInfo.PropertyType.
GetCompatibleGenericInterface
(typeof(IDictionary<,>))
124
?? jsonPropertyInfo.PropertyType.
GetCompatibleGenericInterface
(typeof(IReadOnlyDictionary<,>));