public bool Equals(Map2D <TKey1, TKey2, TValue> x, Map2D <TKey1, TKey2, TValue> y) { if (ReferenceEquals(x, y)) { return(true); } if (ReferenceEquals(x, null)) { return(false); } if (ReferenceEquals(y, null)) { return(false); } if (x.GetType() != y.GetType()) { return(false); } return(Equals(x.map, y.map)); }