public TestObjectMarshall CreateObject(TestObjectMarshall testObject, AppDomain appDomain, string exeAssembly) { // Create an instance of MarshalbyRefType in the second AppDomain. // A proxy to the object is returned. testObject = (TestObjectMarshall)appDomain.CreateInstanceAndUnwrap( exeAssembly, typeof(TestObjectMarshall).FullName ); return testObject; }
public TestObjectMarshall CreateObject(TestObjectMarshall testObject, AppDomain appDomain, string exeAssembly) { // Create an instance of MarshalbyRefType in the second AppDomain. // A proxy to the object is returned. testObject = (TestObjectMarshall)appDomain.CreateInstanceAndUnwrap( exeAssembly, typeof(TestObjectMarshall).FullName ); return(testObject); }
public TestObjectMarshall CreateObject(TestObjectMarshall testObject, AppDomain appDomain, string exeAssembly) { return new TestObjectMarshall(); }
public TestObjectMarshall CreateObject(TestObjectMarshall testObject, AppDomain appDomain, string exeAssembly) { return(new TestObjectMarshall()); }