In the disassembled source I'm finding that there are few local variables, which makes debugging harder. As it happens I can go back and find the (real) source code, which looks like:
string pluginFileName = Path.GetFileName(desc.AssemblyName);
string pluginFullPath = Path.Combine(PluginPath, pluginFileName);
Assembly a = Assembly.LoadFile(pluginFullPath);
result = a.CreateInstance(desc.TypeName, false, BindingFlags.CreateInstance, null, args, null, new object[0]);
whereas the disassembled source code is:
string fileName = Path.GetFileName(descriptor.AssemblyName);
obj2 = Assembly.LoadFile(Path.Combine(this.PluginPath, fileName)).CreateInstance(descriptor.TypeName, false, BindingFlags.CreateInstance, null, args, null, new object[0]);
While I'm not expecting the disassembled source code to be the same as the real source code, with the disassembled one I can't see the value of pluginFullPath or examine the result of Assembly.LoadFile().
Could the disassembled source be made more debug friendly?
whereas the disassembled source code is: While I'm not expecting the disassembled source code to be the same as the real source code, with the disassembled one I can't see the value of pluginFullPath or examine the result of Assembly.LoadFile().
Could the disassembled source be made more debug friendly?