Explain the Advantage of using System.Text.StringBuilder over string

StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it is being operated on, a new instance is created.

0 comments:

Post a Comment