Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Dynamic Keyword | Get Ready For C# 4.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:



This post first appeared on Code Snippets, please read the originial post: here

Share the post

Dynamic Keyword | Get Ready For C# 4.0

×

Subscribe to Code Snippets

Get updates delivered right to your inbox!

Thank you for your subscription

×