Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

key value pair in C#

var myList = new List<KeyValuePair<string, int>>();

// adding elements
myList.Add(new KeyValuePair<string, int>("Laptop", 20));
myList.Add(new KeyValuePair<string, int>("Desktop", 40));
myList.Add(new KeyValuePair<string, int>("Tablet", 60));
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #key #pair
ADD COMMENT
Topic
Name
2+7 =