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)); }
public override int GetHashCode() { return(Name.GetHashCode() & IDGroup.GetHashCode()); }