Why not to use StackTrace to find what method called you
- by Alex.Davies
Our obfuscator, SmartAssembly, does some pretty crazy reflection. It's an obfuscator, it's sort of its job to do things in the most awkward way possible. But sometimes, you can go too far. One such time is this little gem from the strings encoding feature: StackTrace stackTrace = new StackTrace();
StackFrame frame = stackTrace.GetFrame(1);
Type…