I am using a string builder as part of a logging process. my seperator character I am using is " ". How can I output this char in a more effective way than simply " ".
For example:
sb.Append(" ");
Or this this the acceptable way to do this?
Thanks in advance
If you're worried that it's going to create a new string object each time, stop worrying. The compiler will optimize it to use the same string object on every call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With