Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Range != 0D)
            {
                hash ^= Range.GetHashCode();
            }
            if (CellSize != 0D)
            {
                hash ^= CellSize.GetHashCode();
            }
            if (ExtendDist != 0D)
            {
                hash ^= ExtendDist.GetHashCode();
            }
            if (NoEdgeTable != false)
            {
                hash ^= NoEdgeTable.GetHashCode();
            }
            if (SetRoiService != false)
            {
                hash ^= SetRoiService.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + Cells.GetHashCode();
            hash = hash * 23 + Size.GetHashCode();
            hash = hash * 23 + CellSize.GetHashCode();
            hash = hash * 23 + Position.GetHashCode();

            return(hash);
        }