I want to get property defined in my .exe file in WPF.
How can i access properties of App.cs class of my EXE file.
In my application i tried the following code
Assembly opAssembly = Assembly.LoadFile(Environment.CurrentDirectory + @"\MyApp.exe");
Type opType = opAssembly.GetType("OPmall.App");
object opInstance = Activator.CreateInstance(opType);
but it's gives error.
Exception has been thrown by the target of an invocation.
View Complete Post