C# how to dynamically populate a key value pair Edit

Murugan Andezuthu Dharmaratnam | 18 February 2021 | 75

Post has been modified and is pending approval by an admin or moderator

Here is sample code in C# on how to dynamically populate a key value pair

Solution

ListInventor = new List>
{
   new KeyValuePair("eb294398-80f9-4f86-ac1d-79d5e3dc8130","Anand Kumar"),
   new KeyValuePair("ab294398-80f9-4f86-ac1d-79d5e3dc8130","Murugan Andeuzthu")
}