Advertisement
Fhernd

ResolucionEnlaceDinamico.cs

Jul 9th, 2015
1,044
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. // OrtizOL - xCSw - http://ortizol.blogspot.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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement