Exemple #1
0
 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);
 }
Exemple #2
0
        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]);
                }
            }
        }