using System; using System.Runtime.Remoting; class MainClass { [MTAThread] static void Main(string[] args) { AppDomain Domain2 = AppDomain.CreateDomain("AppDomainB"); MainClass MyMyClass = (MainClass)Domain2.CreateInstanceAndUnwrap("YourNameSpace", "YourClassName"); } }