Exemple #1
0
 public override string ToString()
 {
     return($"Last name: {LastName}\nFirst name: {FirstName}\n" +
            $"Patronymic: {Patronymic}\nBirthDate: {BirthDate.ToString("d")}\n" +
            $"EnterDate: {EnterDate.ToString("d")}\nGroup Index: {GroupIndex}\n" +
            $"Faculty: {Faculty}\nSpecialization: {Specialization}\nPerformance: {Performance}\n");
 }
Exemple #2
0
        public override bool Equals(object obj)
        {
            Student another = (Student)obj;

            return(LastName.ToLower().Equals(another.LastName.ToLower()) &&
                   FirstName.ToLower().Equals(another.FirstName.ToLower()) &&
                   Patronymic.ToLower().Equals(another.Patronymic.ToLower()) &&
                   BirthDate.Equals(another.BirthDate) &&
                   EnterDate.Equals(another.EnterDate) &&
                   Char.ToLower(GroupIndex).Equals(Char.ToLower(another.GroupIndex)) &&
                   Faculty.ToLower().Equals(another.Faculty.ToLower()) &&
                   Specialization.ToLower().Equals(another.Specialization.ToLower()) &&
                   Performance == another.Performance);
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            Student another = (Student)obj;

            return(Surname.ToLower().Equals(another.Surname.ToLower()) &&
                   Name.ToLower().Equals(another.Name.ToLower()) &&
                   Patronymic.ToLower().Equals(another.Patronymic.ToLower()) &&
                   DateOfBirth.Equals(another.DateOfBirth) &&
                   EnterDate.Equals(another.EnterDate) &&
                   GroupIndex.ToLower().Equals(another.GroupIndex.ToLower()) &&
                   Faculty.ToLower().Equals(another.Faculty.ToLower()) &&
                   Specialty.ToLower().Equals(another.Specialty.ToLower()) &&
                   AcademicPerformance == another.AcademicPerformance);
        }
Exemple #4
0
 public string ToInfoString()
 {
     return($"{LastName}|{FirstName}|{Patronymic}|{BirthDate.ToString("d")}|" +
            $"{EnterDate.ToString("d")}|{GroupIndex}|{Faculty}|{Specialization}|{Performance}");
 }