Reputation: 595
What Culture should I use with StringBuilder.Append
to have similar functionality to this code:
StringBuilder sb = string.empty;
string str = ...;
sb.Append($"{str}BLABLA\n");
Is it really possible that I get different results depending on the Culture here, as Visual Studio claims when throwing out error CA135? It seems doubtful because I'm only using a string
within the string interpolation.
I'm almost tempted to simply replace the call with two calls to Append to get rid of this...
Upvotes: 0
Views: 48