3 references to ShouldUseIEnumerableBulkAddMethod
Microsoft.CodeAnalysis.CSharp (3)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
177
if (!
ShouldUseIEnumerableBulkAddMethod
(singleSpread.Expression.Type, toListOfElementType.Parameters[0].Type, singleSpread.EnumeratorInfoOpt?.GetEnumeratorInfo.Method))
680
&&
ShouldUseIEnumerableBulkAddMethod
(spreadExpression.Type!, linqToArrayMethod.Parameters[0].Type, spreadElement.EnumeratorInfoOpt?.GetEnumeratorInfo.Method))
1182
if (!
ShouldUseIEnumerableBulkAddMethod
(rewrittenSpreadOperand.Type, addRangeMethod.Parameters[0].Type, spreadElement.EnumeratorInfoOpt?.GetEnumeratorInfo.Method))