Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OrtizOL - xCSw - http://ortizol.blogspot.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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement