public override bool Equals(object obj) { var other = obj as DataKey; if (obj == null) { return(false); } return(CountyDistrict.Equals(other.CountyDistrict) && ProvinceState.Equals(other.ProvinceState) && CountryRegion.Equals(other.CountryRegion)); }
public int CompareTo(DataKey other) { int i = CountryRegion.CompareTo(other.CountryRegion); if (i != 0) { return(i); } i = ProvinceState.CompareTo(other.ProvinceState); if (i != 0) { return(i); } return(CountyDistrict.CompareTo(other.CountyDistrict)); }
public override int GetHashCode() { return(CountyDistrict.GetHashCode() ^ ProvinceState.GetHashCode() ^ CountryRegion.GetHashCode()); }