public override int GetHashCode() { int hashId_l1 = Id_l1.GetHashCode(); int hashId_l2 = Id_l2.GetHashCode(); return(hashId_l1 ^ hashId_l2); }
public bool Equals(Building other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(Id_l1.Equals(other.Id_l1) && Id_l2.Equals(other.Id_l2)); }