This example shows an external class library in a completely separate project DLL, accessing all of the main app methods and variables.
ReflectionDemo is the main app.
BlackBox is the external DLL class library.
Latest update includes ability to view source code programmatically, as well as view stackframe info for each method. Thanks @ITMayWorkDev
Unresolved: peeking at local variable values.
Note that due to an obsolete DLL library being used, this code needs to be compiled in x86 for full functionality. Specifically in SymUtil.cs:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.1\ISymWrapper.dll