Duck type testing with C# 4 for dynamic objects
If you have control over all of the object types that you will be using dynamically, another option would be to force them to inherit from a subclass of the DynamicObject class that is tailored to not fail when a method that does not exist is invoked: A quick and dirty version would look like … Read more