Hi,

I need to build an array of implicit objects in a var object by looping through a List and adding the to the array. For example...

Code:
            var data = new[] { new { Name = "China", Value = 1336718015 },
                        new { Name = "India", Value = 1189172906 },
                        new { Name = "United States", Value = 313232044 },
                        new { Name = "Indonesia", Value = 245613043 },
                        new { Name = "Brazil", Value = 203429773 },};
If I wanted to dynamically add new objects with the Name and Value values above by a looping through an existing List, how would I go about it?

Please someone help