-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Improve endpoint metadata debugging #48207
Improve endpoint metadata debugging #48207
Conversation
…than specifically implementing aDebuggerToString method.
…emove the DebuggerToString method.
… in the RouteNameMetadata class.
…the use of StringBuilder.
…the use of StringBuilder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor questions, but LGTM
@Tratcher I added a helper method for building up a debug string for types. There are some allocations (the values array, string builder), but these methods are unlikely to ever be used on a hot path. Could avoid the values array in most cases by adding something like TagList, but I'm not concerned about perf here so I skipped it. What do you think? |
Fixes #39792
This PR:
ToString
implementations to many types used as metadata on endpointsDebuggerDisplayAttribute
that uses the ToStringEndpointMetadataCollection
Replaces #47163 by @SeanFarrow
Before:
After: