What is the Difference between String and String Builder in C#?
The string instance is immutable i.e. each time when you change the string m a new instance is returned. This can be inefficient sometimes
The StringBuilder allows the developers to have a mutable string. This is a good option in case you want to modify / append string many times.
Leave a Reply