using System.Collections.Generic;
public static void Main()
var dict = new List<Dictionary<string, string>>{ new Dictionary<string, string>{{"Name", "Id"}}, new Dictionary<string, string>{{"Name2", "Id2"}}};
var keyVal = new List<KeyValuePair<string, string>>{ new KeyValuePair<string, string> ("Name3", "Id3"), new KeyValuePair<string, string> ("Name4", "Id4")};
foreach(var item in dict){
foreach(var pair in item){
Console.WriteLine(pair.Key);
Console.WriteLine(pair.Value);
Console.WriteLine(item["Name"]);
foreach(var item in keyVal){
Console.WriteLine(item.Key);
Console.WriteLine(item.Value);