Why does the high part of the stack (in Exception.StackTrace) gets truncated? Let\'s see a simple example:
public void ExternalMethod() { InternalMethod(); }
This is often caused by the compiler optimizations.
You can decorate methods you do not want to inline by using the following attribute:
[MethodImpl(MethodImplOptions.NoInlining)] public void ExternalMethod() { InternalMethod(); }