6 references to GetInterface
Microsoft.Extensions.Configuration.Binder.SourceGeneration (6)
ConfigurationBindingGenerator.Parser.cs (6)
387
bool isDictionary = _typeSymbols.GenericICollection is not null &&
GetInterface
(type, _typeSymbols.GenericIDictionary_Unbound) is not null;
458
bool isCollection = _typeSymbols.GenericICollection is not null &&
GetInterface
(type, _typeSymbols.GenericICollection_Unbound) is not null;
811
INamedTypeSymbol? candidate =
GetInterface
(type, _typeSymbols.GenericIEnumerable_Unbound);
825
INamedTypeSymbol? candidate =
GetInterface
(type, _typeSymbols.GenericIDictionary_Unbound) ??
GetInterface
(type, _typeSymbols.IReadOnlyDictionary_Unbound);
847
type is INamedTypeSymbol namedType &&
GetInterface
(namedType, _typeSymbols.IEnumerable) is not null;