コード例 #1
0
        public void CallWithStringType()
        {
            ReferencedCode.PrintMethod(typeof(string));

            var code = new ReferencedCode();

            code.Print <object>(typeof(string));
        }
コード例 #2
0
        public void CallWithStringType()
        {
            ReferencedCode.PrintMethod <string>();

            var code = new ReferencedCode();

            code.Print <object, string>();
        }
コード例 #3
0
        public void CallWithIntType()
        {
            ReferencedCode.PrintMethod(typeof(int));

            var code = new ReferencedCode();

            code.Print <object>(typeof(int));
        }
コード例 #4
0
        public void CallWithIntType()
        {
            ReferencedCode.PrintMethod <int>();

            var code = new ReferencedCode();

            code.Print <object, int>();
        }