When should one use dynamic keyword in c# 4.0?.......Any good example with dynamic keyword in c# 4.0 that explains its usage....
+1
A:
Here's a general walkhrough.
Here's a great example of how dynamic
makes Office interop much easier.
SLaks
2010-04-20 12:12:05
A:
Dynamic should be used only when not using it is painful. Like in MS Office libraries. In all other cases it should be avoided as compile type checking is beneficial. Following are the good situation of using dynamic.
- Calling javascript method from Silverlight.
- COM interop.
- May be reading Xml.
Amitabh
2010-04-20 12:50:07
A:
I've been trying to answer such questions on C# FAQ blog: http://blogs.msdn.com/csharpfaq/archive/tags/dynamic/default.aspx
Alexandra Rusina
2010-04-21 20:03:24