Beispiel #1
0
        private static void displayTeachers()
        {
            Console.WriteLine("Teachers:");
            if (teachers == null)
            {
                teachers = client.GetTeachers();
            }
            Dictionary <string, Teacher> teacherDictionary = client.GetTeachersIDDictionary();

            for (int i = 0; i < teachers.Count; i++)
            {
                string name = teachers[i].FullName;
                string id   = teachers[i].ID.ToString();
                Console.WriteLine("{0} (id: {1})", teacherDictionary[id].FullName, id);
            }
        }