Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » ASP.NET » Dynamic   (RSS)

Passing anonymous objects to MVC views and accessing them using dynamic

First, I’ll start with a little disclaimer: this post is not about whether using dynamic is better/worse than static typing. Instead, it’s about making it more convenient to use dynamic if you choose to go that route . Clearly, some people dislike dynamic,
Posted by davidebb | 21 Comments
Filed under: , ,

Attachment(s): MvcDynamicViewPage.zip

Using C# dynamic to call static members

By now, you’ve probably heard that C# 4.0 is adding support for the dynamic keyword, which introduces some aspects of dynamic languages to C#.  I had not had a chance to really try it, but recently I was reading Bertrand Le Roy’s post on the topic,
Posted by davidebb | 13 Comments
Filed under: , ,

Attachment(s): DynamicCallsToStaticMembers.zip
 
Page view tracker