List<dynamic> elements have fields but I cannot access them. Why?
问题 I need to loop over a List<dynamic> objects. The list's objects all have values, but for some reason, I am not able to access any of the dynamic object fields. Below is a screenshot of my debug window: There you can see the object contains fields (such Alias , Id , Name , etc). I tried both casting it to a IDictionary<string, object> and ExpandoObject , to no avail. I did not face such a thing before: failing to access existing fields in a dynamic object when they exist . What is wrong here?