Exemple #1
0
        public void CallWithStringType()
        {
            ReferencedCode.PrintMethod(typeof(string));

            var code = new ReferencedCode();

            code.Print <object>(typeof(string));
        }
        public void CallWithStringType()
        {
            ReferencedCode.PrintMethod <string>();

            var code = new ReferencedCode();

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

            var code = new ReferencedCode();

            code.Print <object>(typeof(int));
        }
        public void CallWithIntType()
        {
            ReferencedCode.PrintMethod <int>();

            var code = new ReferencedCode();

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