Пример #1
0
        public override bool Equals(object obj)
        {
            Students st = obj as Students;

            if (st == null)
            {
                return(false);
            }
            return(FirstName == st.FirstName &&
                   LastName == st.LastName &&
                   BirthPlace == st.BirthPlace &&
                   IndexNo == st.IndexNo &&
                   BirthDate.Equals(st.BirthDate) &&
                   IDGroup.Equals(st.IDGroup));
        }
Пример #2
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() & IDGroup.GetHashCode());
 }