The Difference between String and StringBuilder in C#

AramT
55.5K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

I hope I was able to showcase the difference between String and StringBuilder, and in which cases you should use any of which.

Always make sure to properly understand the data structures when using data types, particularly in our lesson's case when it comes to the String types, since they are immutable (cannot be changed or modified). So you need to know when you should use String and when to use StringBuilder.

If you think you’ve learned something new from my article, please feel free to like and share it with your peers.

Article has been ported from CodingSonata.com

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content