public int CompareTo(FootballClub other) { if (!year.Equals(other.year)) { return(year.CompareTo(other.year)); } if (!name.Equals(other.name)) { return(name.CompareTo(other.name)); } if (country != other.country) { return(country.CompareTo(other.country)); } if (city != other.city) { return(city.CompareTo(other.city)); } return(0); }
protected virtual bool EqualClubs(FootballClub i) { return(name == i.name && city == i.city && country == i.country && year == i.year); }