Exemple #1
0
        // this will only start when the assembly of NET4Callee is in gac or in local folder
        static void Main(string[] args)
        {
            MainWrapper main = new NET45Caller.MainWrapper();

            Console.WriteLine(main.CallCOM());

            if (args.Length == 0 ||
                args[0] != "UT")
            {
                Console.ReadLine();
            }
        }
        // this will only start when the assembly of NET4Callee is in gac or in local folder
        static void Main(string[] args)
        {
            MainWrapper main = new NET45Caller.MainWrapper();

            var result = main.CallCOM();

            System.Diagnostics.Trace.WriteLine(result);
            Console.WriteLine(result);

            if (args.Length == 0 ||
                args[0] != "UT")
            {
                Console.ReadLine();
            }
        }