using System;
public class Program
{
public static void Main()
var x = 5;
Console.WriteLine(x.GetType());
//Try uncommenting this line below
//x = "Kunal";
dynamic y;
y = 5;
Console.WriteLine(y.GetType());
y = "TEST";
Console.WriteLine(temporaryValue().GetType());
}
//dynamic can also be used as a return type for a function
static dynamic temporaryValue()
return 1;
//return "Hello";