fork download
  1. // OrtizOL - xCSw - http://o...content-available-to-author-only...t.com
  2.  
  3. using System;
  4.  
  5. public class ResolucionEnlaceDinamico
  6. {
  7. #region Punto de entrada de ejecución
  8. public static void Main()
  9. {
  10. object x = "xCSw";
  11. dynamic y = "OrtizOL";
  12.  
  13. MostrarEnConsola(x, y);
  14. }
  15. #endregion
  16.  
  17. #region Métodos sobrecargados
  18. public static void MostrarEnConsola(object param1, object param2)
  19. {
  20. Console.WriteLine("x");
  21. }
  22.  
  23. public static void MostrarEnConsola(object param1, string param2)
  24. {
  25. Console.WriteLine("C");
  26. }
  27.  
  28. public static void MostrarEnConsola(string param1, object param2)
  29. {
  30. Console.WriteLine("S");
  31. }
  32.  
  33. public static void MostrarEnConsola(string param1, string param2)
  34. {
  35. Console.WriteLine("w");
  36. }
  37. #endregion
  38. }
Success #stdin #stdout 0.42s 31008KB
stdin
Standard input is empty
stdout
C