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:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
|