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.