What is the difference between string and stringbuilder in c#?
Answers
Answered by
0
A String is basically immutable but on the other hand a string builder is mutable.
A string uses System namespaces.A stringbuilder uses System .text namespaces
A string finds it difficult to append keyword but on the other hand a string builder can append keyboard.
A STRING is basically slower than string builder as it creates new instances every time but stringbuilder is faster than string as it creates only one instance.
Similar questions