Mapsui.Geometries.Polygon.GetHashCode C# (CSharp) Method

GetHashCode() public method

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            var hash = ExteriorRing.GetHashCode();

            foreach (var ring in InteriorRings)
            {
                hash = hash ^ ring.GetHashCode();
            }
            return hash;
        }