קוד:
Dictionary<string, string[]> arr = newDictionary<string, string[]>();
arr.Add("How Are You?", newstring[] { "Good", "Fine", "Bad", "Not Bad" });
arr.Add("How old r u?", newstring[] { "10-15", "16-21", "22-25", "old than..." });
arr.Add("what is your name?", newstring[] { "Tom", "Toni", "Albert", "Ray" });
arr.Add("what is your last name", newstring[] { "Jackson", "Samuel", "Nikson", "Grechko" });
arr.Add("where do you working?", newstring[] { "plumber", "Hi Tech", "joiner", "Fisher" });
foreach ( System.Collections.Generic.KeyValuePair<string,string[]> item in arr)
{
Console.WriteLine("The Question: " + item.Key);
Console.WriteLine("Answers:");
for (int i = 0; i < item.Value.Length; i++)
{
Console.WriteLine(i.ToString() + ": " + item.Value[i].ToString());
}
}