예제 #1
0
            public static int MainMethod()
            {
                MyClass c = new MyClass();

                c.Method01(999);
                c.Method01(9, 8);
                c.Method01(9, 8, 7);
                c.Method01(999, z: 888);
                c.Method01(999, z: 888, y: 666);
                c.Method02 <byte>();
                c.Method02 <int>(default(dynamic));
                c.Method02 <long>(default(dynamic), "CCC");
                var v = new MyStruct <dynamic>();

                v.Method11();
                v.Method11(default(dynamic));
                v.Method11(default(object), default(object), default(object));
                v.Method12 <int, dynamic>();
                v.Method12 <int, dynamic>(100);
                v.Method12 <int, dynamic>(-9999, default(dynamic));
                return(0);
            }