s

C# how to dynamically populate a key value pair edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 18 February 2021 | 1668

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

Solution

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