The main difference is system.string is immutable and
system.stringbuilder is a mutable. Append keyword is used in string builder but
not in system.string.
Immutable means once we created we cannot modified. Suppose
if we want give new value to old value simply it will discarded the old value
and it will create new instance in memory to hold the new value.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The main difference is system.string is immutable and system.stringbuilder is a mutable. Append keyword is used in string builder but not in system.string.
Immutable means once we created we cannot modified. Suppose if we want give new value to old value simply it will discarded the old value and it will create new instance in memory to hold the new value.