Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 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));
 }