Forums Assignment Help What’s the advantage of using System.Text.StringBuilder over System.String?

This topic contains 1 reply, has 1 voice, and was last updated by  Aakanksha 6 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3887

    Aakanksha
    Participant

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

    #11552

    Aakanksha
    Participant

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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.