public override int GetHashCode()
        {
            int hash = 1;

            com.epl.geometry.Geometry geom1 = GetEsriGeometry();
            if (geom1 != null)
            {
                hash = geom1.GetHashCode();
            }
            if (esriSR != null)
            {
                hash = com.epl.geometry.NumberUtils.HashCombine(hash, esriSR.GetHashCode());
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            com.epl.geometry.SpatialReference sr = GetSpatialReference();
            com.epl.geometry.Geometry         g  = GetGeometry();
            int hc = unchecked ((int)(0x2937912));

            if (sr != null)
            {
                hc ^= sr.GetHashCode();
            }
            if (g != null)
            {
                hc ^= g.GetHashCode();
            }
            return(hc);
        }