Why not
If sb.Length = 0
It does not waste time bulding a string that just waits around to be garbage collected. The whole point of StringBuilder is to avoid intermediate strings.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.