by jsingleton · 10y ago · 0 comments
BTW there is a typo: "passed in my the calling code" should probably be "passed in by the calling code".
I wonder if the new C# 6 string interpolation also uses string builder like format does. e.g.
$"Name = {name}, hours = {hours:hh}"
https://msdn.microsoft.com/en-us/library/Dn961160.aspxThis post seems to suggest it uses concatenation, which may be bad for performance in some situations due to the immutability.
https://weblogs.asp.net/bleroy/c-6-string-interpolation-is-n...
> BTW there is a typo: "passed in my the calling code" should probably be "passed in by the calling code".
Thanks for spotting that, I'll fix it in a bit