コード例 #1
0
        static void Main(string[] args)
        {
            ClassCaller.UpdateSourceCodeHelperFunctions(2);
            CallMe      m   = new CallMe();
            ClassCaller c   = new ClassCaller(m);
            string      r   = "in string ";
            int         arg = 1;
            String      sx  = "";
            object      ox  = c.DoCall("!MyStaticMethod", 23, ref sx);

            Console.WriteLine(sx);
            c.DoCall("Hello1", "hello world", 1);
            c.DoCall("Hello2", ref r);
            Console.WriteLine(r);
            c.DoCall("Hello2", ref arg);
            Console.WriteLine(arg.ToString());
            bool?rt = (bool?)c.DoCall("ThreeStateTest", 0);

            rt = (bool?)c.DoCall("ThreeStateTest", 1);
            rt = (bool?)c.DoCall("ThreeStateTest", 2);
            CustomClassAsArg ccarg = new CustomClassAsArg();

            c.DoCall("UpdateCC", ccarg);
        }     //Main
コード例 #2
0
 public void UpdateCC(CustomClassAsArg c)
 {
     c.MyInfo = "updated";
 }