Advertisement
Fhernd

ResolucionEstatica.cs

Jul 7th, 2015
1,092
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. // OrtizOL - xCSw - http://ortizol.blogspot.com
  2.  
  3. using System;
  4.  
  5. public class ResolucionEstatica
  6. {
  7.     public static void Main()
  8.     {
  9.         dynamic x = 7;
  10.        
  11.         MostrarEnConsola(x, x);        // Error de compilación: No existe está firma.
  12.         MostrarEnDialogo(x);        // Error de compilación: No existe este método.    
  13.     }
  14.    
  15.     public static void MostrarEnConsola(int x)
  16.     {
  17.         Console.WriteLine("xCSw");
  18.     }
  19.    
  20.     public static void MostrarEnConsola(string x)
  21.     {
  22.         Console.WriteLine("xCSw");
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement