This rule finds code that performs string concatenation in a loop using the + operator. If the enclosing loop in question is executed many times, the use of the + operator may be inefficient.

It is better to use System.Text.StringBuilder for efficiency.

This code performs the same function as the example except it uses StringBuilder so it is more efficient.

  • MSDN: StringBuilder.