static void Main() { var test = new MethodOverloads(); test.Foo(33); test.Foo("abc"); test.Bar(44); Console.ReadKey(); }
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); }