Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public TestObjectMarshall CreateObject(TestObjectMarshall  testObject, AppDomain appDomain, string exeAssembly)
 {
     return new TestObjectMarshall();
 }
Beispiel #4
0
 public TestObjectMarshall CreateObject(TestObjectMarshall testObject, AppDomain appDomain, string exeAssembly)
 {
     return(new TestObjectMarshall());
 }