Is there a significant difference between String
and StringBuilder
in C# and when would you use one over the other?
Example:
Using String string stringVal = "Hello World!"
or we can do it using StringBuilder
StringBuilder sbMyValue = new StringBuilder("");
sbMyValue.Append("Hello World");