Created
July 7, 2015 22:11
-
-
Save Fhernd/472a8c637f8ec142c7c8 to your computer and use it in GitHub Desktop.
Resolución estática de funciones con argumentos estáticos.
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 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