Wednesday 26 September 2012

What are differences between system.stringbuilder and system.string?


1.)system.string is immutable but system.stringBuilder is mutable.
Immutable means once we created we cannot modified.    Suppose we want give new value to old value simply it discarded the old value and it will create new instance in memory to hold the new value.
2.)append keyword is used in string builder but not in system.string.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.