// OrtizOL - xCSw - http://o...content-available-to-author-only...t.com
using System;
public class ResolucionEnlaceDinamico
{
#region Punto de entrada de ejecución
public static void Main()
{
object x = "xCSw";
dynamic y = "OrtizOL";
MostrarEnConsola(x, y);
}
#endregion
#region Métodos sobrecargados
public static void MostrarEnConsola(object param1, object param2)
{
Console.WriteLine("x");
}
public static void MostrarEnConsola(object param1, string param2)
{
Console.WriteLine("C");
}
public static void MostrarEnConsola(string param1, object param2)
{
Console.WriteLine("S");
}
public static void MostrarEnConsola(string param1, string param2)
{
Console.WriteLine("w");
}
#endregion
}
Ly8gT3J0aXpPTCAtIHhDU3cgLSBodHRwOi8vby4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4udC5jb20KIAp1c2luZyBTeXN0ZW07CiAKcHVibGljIGNsYXNzIFJlc29sdWNpb25FbmxhY2VEaW5hbWljbwp7CiAgICAjcmVnaW9uIFB1bnRvIGRlIGVudHJhZGEgZGUgZWplY3VjacOzbgogICAgcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQogICAgewogICAgICAgIG9iamVjdCB4ID0gInhDU3ciOwogICAgICAgIGR5bmFtaWMgeSA9ICJPcnRpek9MIjsKICAgICAgICAKICAgICAgICBNb3N0cmFyRW5Db25zb2xhKHgsIHkpOwogICAgfQogICAgI2VuZHJlZ2lvbgogICAgCiAgICAjcmVnaW9uIE3DqXRvZG9zIHNvYnJlY2FyZ2Fkb3MKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNb3N0cmFyRW5Db25zb2xhKG9iamVjdCBwYXJhbTEsIG9iamVjdCBwYXJhbTIpCiAgICB7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIngiKTsKICAgIH0KICAgIAogICAgcHVibGljIHN0YXRpYyB2b2lkIE1vc3RyYXJFbkNvbnNvbGEob2JqZWN0IHBhcmFtMSwgc3RyaW5nIHBhcmFtMikKICAgIHsKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiQyIp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