How to populate a new[] array using a loop

Sep 3 2018 3:03 PM
Hi
 
How to populate an array like this using a loop?
 
keyvalues = new[] {
new { Key = "31671612", Value = "31671612" },
new { Key = "38405918", Value = "38405918" },
new { Key = "22222221", Value = "22222221" }
},
 

Brought to you by:

Answers (1)