Tuesday, November 27, 2012

.Net under the covers

An interesting little oddity I stumbled across the other day, involving StringBuilder.AppendFormat, and a string which it turned out had had a GUID already expanded into it, and an unexpected exception result

so it looks like the parse for a number is run before checking that the format is even sane; not what one would have expected.

No comments :