using System;
namespace Articulos.Ch03
{
public class MultiplesParametrosSobrcarga
{
public static void Metodo (int x, int y)
{
Console.WriteLine ("Metodo(int x, int y)");
}
public static void Metodo (int x, double y)
{
Console.WriteLine ("Metodo(int x, double y)");
}
public static void Metodo (double x, double y)
{
Console.WriteLine ("Metodo(double x, int x)");
}
public static void Main ()
{
Metodo (5, 10);
}
}
}
dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIEFydGljdWxvcy5DaDAzCnsKCXB1YmxpYyBjbGFzcyBNdWx0aXBsZXNQYXJhbWV0cm9zU29icmNhcmdhCgl7CgkJcHVibGljIHN0YXRpYyB2b2lkIE1ldG9kbyAoaW50IHgsIGludCB5KQoJCXsKCQkJQ29uc29sZS5Xcml0ZUxpbmUgKCJNZXRvZG8oaW50IHgsIGludCB5KSIpOwoJCX0KCQkKCQlwdWJsaWMgc3RhdGljIHZvaWQgTWV0b2RvIChpbnQgeCwgZG91YmxlIHkpCgkJewoJCQlDb25zb2xlLldyaXRlTGluZSAoIk1ldG9kbyhpbnQgeCwgZG91YmxlIHkpIik7CgkJfQoJCQoJCXB1YmxpYyBzdGF0aWMgdm9pZCBNZXRvZG8gKGRvdWJsZSB4LCBkb3VibGUgeSkKCQl7CgkJCUNvbnNvbGUuV3JpdGVMaW5lICgiTWV0b2RvKGRvdWJsZSB4LCBpbnQgeCkiKTsKCQl9CgkJCgkJcHVibGljIHN0YXRpYyB2b2lkIE1haW4gKCkKCQl7CgkJCU1ldG9kbyAoNSwgMTApOwoJCX0KCX0KfQo=