2 references to ShouldUseIEnumerableBulkAddMethod
Microsoft.CodeAnalysis.CSharp (2)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
178
if (!
ShouldUseIEnumerableBulkAddMethod
(singleSpread.Expression.Type, toListOfElementType.Parameters[0].Type, singleSpread.EnumeratorInfoOpt?.GetEnumeratorInfo.Method))
681
&&
ShouldUseIEnumerableBulkAddMethod
(spreadExpression.Type!, linqToArrayMethod.Parameters[0].Type, spreadElement.EnumeratorInfoOpt?.GetEnumeratorInfo.Method))