Posts Tagged 'dynamic 4.0'

Difference between dynamic and var keyword .net 4.0

Posted on May 19 2010 by Sachin Jain

In .net 4.0 dynamic keyword has been introduced. This allows you to define the object without specifying its type. So let say we have following string :-

string s = “sachin”;

We can define another variable without specifying the type

dynamic d = s;

Now this can also be done through var keyword so whats the difference?
The difference is [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Powered by Sachin Jain

Powered by Olark