4 ms·
The purpose of dynamic is not to turn C# into a dynamic language. It was added to make it easier to interface with certain other parties. Sometimes you just don
by jpalomaki 13y ago
The purpose of dynamic is not to turn C# into a dynamic language. It was added to make it easier to interface with certain other parties. Sometimes you just don't have the type information (practical example is handling JSON data) and dynamic can make the code cleaner in these cases.
More about this:
http://msdn.microsoft.com/en-us/magazine/gg598922.aspx http://msdn.microsoft.com/en-us/magazine/gg598922.aspx