public override int GetHashCode() { unchecked { int hashCode = (SpatialReference != null ? SpatialReference.GetHashCode() : 0); hashCode = (hashCode * 397) ^ HasM.GetHashCode(); hashCode = (hashCode * 397) ^ HasZ.GetHashCode(); hashCode = (hashCode * 397) ^ (Rings != null ? Rings.GetHashCode() : 0); return(hashCode); } }
public bool Equals(Polygon other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(SpatialReference, other.SpatialReference) && HasM.Equals(other.HasM) && HasZ.Equals(other.HasZ) && Equals(Rings, other.Rings)); }
public bool Equals(MultiPoint other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(SpatialReference, other.SpatialReference) && HasM.Equals(other.HasM) && HasZ.Equals(other.HasZ) && Equals(Points, other.Points)); }