10 references to IsAssignableFrom
System.Text.Json.SourceGeneration (10)
Helpers\RoslynExtensions.cs (1)
223
return member.Name == otherMember.Name && member.ContainingType.
IsAssignableFrom
(otherMember.ContainingType);
JsonSourceGenerator.Parser.cs (9)
98
if (!_knownSymbols.JsonSerializerContextType.
IsAssignableFrom
(contextTypeSymbol))
627
implementsIJsonOnSerializing = _knownSymbols.IJsonOnSerializingType.
IsAssignableFrom
(type);
628
implementsIJsonOnSerialized = _knownSymbols.IJsonOnSerializedType.
IsAssignableFrom
(type);
718
else if (!foundJsonConverterAttribute && _knownSymbols.JsonConverterAttributeType.
IsAssignableFrom
(attributeType))
779
if (!_knownSymbols.IEnumerableType.
IsAssignableFrom
(type))
873
else if (_knownSymbols.IDictionaryType.
IsAssignableFrom
(type))
880
else if (_knownSymbols.IListType.
IsAssignableFrom
(type))
885
else if (_knownSymbols.StackType.
IsAssignableFrom
(type))
890
else if (_knownSymbols.QueueType.
IsAssignableFrom
(type))