Exemple #1
0
        static void Main()
        {
            var test = new MethodOverloads();

            test.Foo(33);
            test.Foo("abc");
            test.Bar(44);
            Console.ReadKey();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            var test = new MethodOverloads();

            test.Foo(23);
            test.Foo("abc");
            test.Foo("abc", 34);
            test.Foo(35, "abc");
            test.Bar(36);
        }