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