According To reflector , ExpandoObject Does implemenet IDictionary<string, object>

How ever I have this code which i dont understand why Does Interface co-variance doesn’t work here

From what Ive read – it does suppose to work :

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.
There are three things wrong here:
IDictionary<TKey, TValue>is invariant in both its type parametersinthere)You should ignore the
dynamicpart here – it’s a red herring. Try working out some code you’d expect to work that doesn’t usedynamic. Here’s an example of whyIDictionary<,>is invariant: