In C#4.0, we have dynamic type, but how to invoke static method of dynamic type object?
Below code will generate exception at run time. The dynamic
This is not supported directly by C# 4 but there's an interesting workaround in this blog post: http://blogs.msdn.com/davidebb/archive/2009/10/23/using-c-dynamic-to-call-static-members.aspx