Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a couple unnecessary ToStrings in System.DirectoryServices #34244

Merged
merged 1 commit into from
Mar 28, 2020

Conversation

stephentoub
Copy link
Member

These are calling ToString on a StringBuilder, but StringBuilder.Append has a StringBuilder-based overload in netcoreapp. On other builds this will just fall back to the object-based overload, which will call ToString.

Related to dotnet/roslyn-analyzers#3443
We'd previously fixed most of these in dotnet/runtime, but missed these.

cc: @bartonjs

These are calling ToString on a StringBuilder, but StringBuilder.Append has a StringBuilder-based overload in netcoreapp.  On other builds this will just fall back to the object-based overload, which will call ToString.
@stephentoub stephentoub merged commit 419e949 into dotnet:master Mar 28, 2020
@stephentoub stephentoub deleted the removesb branch March 28, 2020 21:44
@stephentoub stephentoub added the tenet-performance Performance related issue label Apr 15, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants