You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stringbuilder.Append should have an IFormattable overload #55366
StringBuilder has several overloads, but none of them work with an interpolated string without first turning it into a string. Given that purpose of the StringBuilder is performance, it seems like turning the interpolation into a string first is going to give a performance hit.
Proposed API
namespace System.Text
{
public sealed class StringBuilder : System.Runtime.Serialization.ISerializable
{
+ public StringBuilder AppendFormat(IFormattable)
}
}
Activity
stephentoub commentedon Jul 9, 2021
This is addressed by #51653. With it, you can just write:
and the right things happen.
Closing as a dup of #50635. Thanks.