Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 7, 2015 22:11
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/472a8c637f8ec142c7c8 to your computer and use it in GitHub Desktop.
Save Fhernd/472a8c637f8ec142c7c8 to your computer and use it in GitHub Desktop.
Resolución estática de funciones con argumentos estáticos.
// OrtizOL - xCSw - http://ortizol.blogspot.com
using System;
public class ResolucionEstatica
{
public static void Main()
{
dynamic x = 7;
MostrarEnConsola(x, x); // Error de compilación: No existe está firma.
MostrarEnDialogo(x); // Error de compilación: No existe este método.
}
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