2 references to IsInSubtypeRelationshipWith
System.Text.Json (2)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
27
Debug.Assert(typeof(T).
IsInSubtypeRelationshipWith
(sourceConverter.Type!));
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
164
if (!converter.Type!.
IsInSubtypeRelationshipWith
(typeToConvert))