C# 4.0 introduces dynamic keyword, which will look up at run-time.
Does this mean we’ll need awkward reflection no more? If does, Can you show up an example of it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We’ll still have Reflection – using ‘dynamic’ against regular CLR objects will invoke a Reflection-based dispatcher.
So – we’ll still have Reflection, but it’ll be easier to do.
Here’s an example:
I don’t know about you, but I like the former. =)
In both these cases, I get no compile-time checking, no Intellisense, no IDE support – but the former case is much more expressive than the latter.