WHAT’S THE ADVANTAGE OF USING SYSTEM.TEXT.STRINGBUILDER OVER SYSTEM.STRING?

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
C# 
C#
 1325  View(s)
Ratings:
Rate this:
  1. Uttam Misra

    Post:54

    Points:270
    What’s the advantage of using System.Text.StringBuilder over System.String?

    StringBuilderis more efficient in the cases, where a lot of manipulation is done to thetext. Strings are immutable, so each time it’s being operated on, a newinstance is created.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!