Create object using AppDomain.CreateInstanceAndUnwrap : AppDomain : Assembly C# Examples


C# Examples » Assembly » AppDomain »

 

Create object using AppDomain.CreateInstanceAndUnwrap









    
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");

    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Assembly
» AppDomain