Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created May 7, 2012 10:27
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 tnngo2/2627105 to your computer and use it in GitHub Desktop.
Save tnngo2/2627105 to your computer and use it in GitHub Desktop.
using System;
namespace Theory10
{
class Dynamic
{
static void Main(string[] args)
{
dynamic i = 1;
Console.WriteLine(i.GetType());
Console.WriteLine(i);
i = "this is a string";
Console.WriteLine(i.GetType());
Console.WriteLine(i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment