Advertisement
Fhernd

SinReceptorDinamico.cs

Jul 7th, 2015
1,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. // OrtizOL - xCSw - http://ortizol.blogspot.com
  2.  
  3. using System;
  4.  
  5. public class SinReceptorDinamico
  6. {
  7.     public static void Main()
  8.     {
  9.         dynamic x = 7;
  10.         dynamic y = "OrtizOL";
  11.        
  12.         // Sin receptor dinámico:
  13.         MostrarEnConsola(x);
  14.         MostrarEnConsola(y);
  15.     }
  16.    
  17.     public static void MostrarEnConsola(int x)
  18.     {
  19.         Console.WriteLine("xCSw");
  20.     }
  21.    
  22.     public static void MostrarEnConsola(string x)
  23.     {
  24.         Console.WriteLine("xCSw");
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement