Created
July 7, 2015 21:59
-
-
Save Fhernd/ee42ab0e169974bffac3 to your computer and use it in GitHub Desktop.
Demostración de uso de receptores dinámicos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OrtizOL - xCSw - http://ortizol.blogspot.com | |
using System; | |
public class SinReceptorDinamico | |
{ | |
public static void Main() | |
{ | |
dynamic x = 7; | |
dynamic y = "OrtizOL"; | |
// Sin receptor dinámico: | |
MostrarEnConsola(x); | |
MostrarEnConsola(y); | |
} | |
public static void MostrarEnConsola(int x) | |
{ | |
Console.WriteLine("xCSw"); | |
} | |
public static void MostrarEnConsola(string x) | |
{ | |
Console.WriteLine("xCSw"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment