I need to resolve this homework but I am stuck reading the Tkey
and returning the Tvalue
.
Could somebody help me ? Please....
//Create a dictionary list of employee IDs and the name that goes with that IDs.Fill it with a few
//records.then ask the user for their ID and return the name.
Dictionary<int, string> listOfemployees = new Dictionary<int, string>();
listOfemployees[1050] = "Juan Trejo";
listOfemployees[1060] = "Esmeralda Trejo";
listOfemployees[1070] = "Danilo Martinez";
listOfemployees[1080] = "Jorge Ortiz";
listOfemployees[1090] = "Julio Algo";
Console.Write("What is your id");
Console.Readline(); // this is my problem reading the id Tkey and returning Tvalue.