Free mag vol1 | Page 663

CHAPTER 16  DYNAMIC TYPES AND THE DYNAMIC LANGUAGE RUNTIME Limitations of the dynamic Keyword While a great many things can be defined using the dynamic keyword, there are some limitations regarding its usage. While they are not show-stoppers, do know that a dynamic data item cannot make use of lambda expressions or C# anonymous methods when calling a method. For example, the following code will always result in errors, even if the target method does indeed take a delegate parameter that takes a string value and returns void. dynamic