Dynamic Keyword | Get Ready For C# 4.0

Posted by Tarek N. Elsamni | Posted in , , , , , , | Posted on 01:14

0

The dynamic keyword is a key feature of this release. It closes the gap between dynamic and statically-typed languages. Now you can create dynamic objects and let their types be determined at run time. With the addition of the System.Dynamic namespace, you can create expandable objects and advanced class wrappers, and you can provide interoperability between different languages, including dynamic ones. Here is one quick example:



More Complicated Example:

Comments (0)

Post a Comment