Exemple #1
0
        static void Main(string[] args)
        {
            var lst = new List <AppDomainRunner.A> {
                new AppDomainRunner.A()
            };

            AppDomainRunner.Go(EntityPtr.CastRef <string>(lst));

            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var obj    = new object();
            var list   = new List <int>(100);
            var objPtr = EntityPtr.ToPointer(obj);

            Console.ReadKey();

            AppDomainRunner.Go(objPtr);

            Console.WriteLine("Still alive: {0}", obj);
            Console.ReadKey();
        }