How to fetch data from List<dynamic>()? [duplicate]
问题 This question already has answers here : Dynamic Object Intellisense (3 answers) Closed 5 years ago . My code is like this var eventDocs = new List<dynamic>(); foreach (var node in eventtypeNode.GetDescendantNodes()) { string files = node.GetProperty("document").Value; eventDocs.Add(new { Id = node.Id, Name = node.Name, CreatedOn = node.CreateDate, Path = files }); } This works good. Now I am trying to fetch the data out of this dynamic list foreach (var eventDoc in eventDocs) { eventDoc.----