4 references to HasImplicitConversionToOrImplementsVarianceCompatibleInterface
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
6258
var result = Conversions.
HasImplicitConversionToOrImplementsVarianceCompatibleInterface
(initializerType, collectionsIEnumerableType, ref useSiteInfo, out bool needSupportForRefStructInterfaces);
Binder\ForEachLoopBinder.cs (1)
1261
bool result = this.Conversions.
HasImplicitConversionToOrImplementsVarianceCompatibleInterface
(enumeratorType,
Binder\UsingStatementBinder.cs (1)
284
result = conversions.
HasImplicitConversionToOrImplementsVarianceCompatibleInterface
(declarationTypeOpt, targetInterface, ref useSiteInfo, out needSupportForRefStructInterfaces);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
341
implementsInterface = conversions.
HasImplicitConversionToOrImplementsVarianceCompatibleInterface
(enumeratorType, idisposableTypeSymbol, ref useSiteInfo, out _);