stakx / TypeNameFormatter

A small .NET library for formatting type names à la C#.
MIT License
33 stars 4 forks source link

Debugger shouldn't step into formatting methods by default #10

Closed stakx closed 6 years ago

stakx commented 6 years ago

Yet another aspect of source code distribution that isn't yet addressed is debugging behaviour. User code probably doesn't want to have the debugger step into stringBuilder.AppendFormattedName or type.GetFormattedName.

These extension methods should probably be decorates with a suitable [System.Diagnostics.Debugger...] custom attribute.

stakx commented 6 years ago

Fixed in 717e5e1e8c4f04e8543ce7c02ea3a463fabfe4ec with [DebuggerStepThrough]. See commit message for details.