Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 7, 2015 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/ee42ab0e169974bffac3 to your computer and use it in GitHub Desktop.
Save Fhernd/ee42ab0e169974bffac3 to your computer and use it in GitHub Desktop.
Demostración de uso de receptores dinámicos.
// 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