C# 4.0-Dynamic Data Type, Difference between var and dynamic(jalpesh.blogspot.com)
submitted by
jalpesh(1176) 2 years, 2 months ago
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);
|category: C#
|Views: 15
tags:
C# another
Everyones tags:
Your Tags: