Advertisement
Fhernd

DynamicKeyword.cs

Sep 29th, 2014
1,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. class DynamicKeyword
  2. {
  3.     public static void main()
  4.     {
  5.         dynamic d = 1;
  6.         d = d + 3;
  7.  
  8.         System.Console.WriteLine(d);
  9.  
  10.         d = "Cadena de caracteres";
  11.  
  12.         System.Console.WriteLine(d);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement