What do the "+n" values mean at the end of a method name in a stack trace?
When reading a stack trace like:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
System.Convert.ToInt32(String value) +68
What do the +68, +112, etc. numbers mean. I'm guessing that they're offsets to something. If so, what?
I believe they're offsets into the code of the method - whether IL or JIT-compiled-assembly bytes, I'm not sure...
(Basically they're taking the place of line numbers, which of course aren't available without the pdbs.)
It means:
it’s an offset into the native instructions for the method.
Read this for more details.
it is the byte offset into native code.
With ILDASM you know why.