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

Pushpendra Singh

Total Post:240

Points:1200
Posted by  Pushpendra Singh
C# 
C#
 1399  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.

      Modified On Mar-26-2018 05:38:29 AM

Answer

NEWSLETTER

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