public static void Print(Programer programer) { Console.WriteLine("FIO = " + programer.fio); Console.WriteLine("Born date = " + programer.date); Console.WriteLine("Level = " + programer.level); Console.WriteLine("Project name = " + programer.projectName); }
public static void Main() { Programer[] array = new Programer[7]; for (int i = 0; i < array.Length; i++) { array[i] = GetProgramerFormKeyboard(); } Print("Input level = ", false); string stringLevel = Console.ReadLine(); for (int i = 0; i < array.Length; i++) { if (array[i].level.ToString() == stringLevel) { Print(array[i]); } } }