using System.Collections.Generic;
public static void Main(string[] args){
Test objTest = new Test();
IDictionary<string, string[]> lDict2 = new Dictionary<string, string[]>();
lDict2 = objTest.TestMethod();
string[] fArray = lDict2["First List"];
string[] sArray = lDict2["Second List"];
Console.WriteLine("items in the first array: ");
foreach(var item in fArray){
Console.WriteLine(lDict2["First List"][0]);
Console.WriteLine("items in the second array: ");
foreach(var item in sArray){
public IDictionary<string, string[]> TestMethod(){
const string first = "First List";
const string second = "Second List";
List<string> fList = new List<string>(){ "one", "two", };
List<string> sList = new List<string>(){ "three", "four", };
Dictionary<string, List<string>> lDict = new Dictionary<string, List<string>>();
lDict.Add(second, sList);
foreach(KeyValuePair<string, List<string>> item in lDict){
foreach(var key in lDict.Keys){
IDictionary<string, string[]> lDict2 = new Dictionary<string, string[]>();
foreach(var item in lDict){
lDict2[item.Key] = item.Value.ToArray();