Mega Code Archive

 
Categories / C# Tutorial / Reflection
 

Execute Assembly

using System; class Test {     public static void Main()     {         AppDomain currentDomain = AppDomain.CurrentDomain;         AppDomain otherDomain = AppDomain.CreateDomain("otherDomain");         currentDomain.ExecuteAssembly("MyExecutable.exe");         otherDomain.ExecuteAssembly("MyExecutable.exe");     } }