C# 4.0-Dynamic Data Type, Difference between var and dynamic
C# 4.0 introduces a new keyword called ‘Dynamic‘. It can consume any object anything. Let’s see some examples for that. dynamic intExample = 1;Response.Write(intExample);dynamic floatExample = 2.5;Response.Write(floatExample);dynamic stringExample = “DotNetJaps”;Response.Write(stringExample); It will print out put on web page as following. Now, you will have question what’s new in that. It could be also done with