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