示例#1
0
        public override int GetHashCode()
        {
            var hashCode = 459946268;

            hashCode = hashCode * -1521134295 + EqualityComparer <InfoboxAction[]> .Default.GetHashCode(Actions);

            hashCode = hashCode * -1521134295 + CloseDelayTime.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(HtmlContent);

            hashCode = hashCode * -1521134295 + EqualityComparer <Location> .Default.GetHashCode(Location);

            hashCode = hashCode * -1521134295 + MaxHeight.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxWidth.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <GeolocatonPoint> .Default.GetHashCode(Offset);

            hashCode = hashCode * -1521134295 + ShowCloseButton.GetHashCode();
            hashCode = hashCode * -1521134295 + ShowPointer.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title);

            hashCode = hashCode * -1521134295 + Visible.GetHashCode();
            hashCode = hashCode * -1521134295 + ZIndex.GetHashCode();
            return(hashCode);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hc = Id.GetHashCode();

            foreach (var i in Images)
            {
                hc ^= i.GetHashCode();
            }
            hc ^= (int)Stretch << 14;
            hc ^= (int)StretchDirection << 17;
            hc ^= Opacity.GetHashCode();
            hc ^= HorizontalOffset.GetHashCode();
            hc ^= VerticalOffset.GetHashCode();
            hc ^= LeftMarginWidthPercent.GetHashCode();
            hc ^= RightMarginWidthPercent.GetHashCode();
            hc ^= TopMarginHeightPercent.GetHashCode();
            hc ^= BottomMarginHeightPercent.GetHashCode();
            hc ^= MaxHeight.GetHashCode();
            hc ^= MaxWidth.GetHashCode();
            hc ^= Zoom.GetHashCode();
            hc ^= (int)ImagePlacement;
            hc ^= IsRandom ? int.MinValue : 0;
            hc ^= IsEnabled ? 0x40000000 : 0;
            hc ^= Interval.GetHashCode();
            return(hc);
        }
示例#3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PointCloudRange != 0F)
            {
                hash ^= PointCloudRange.GetHashCode();
            }
            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            if (MinHeight != 0F)
            {
                hash ^= MinHeight.GetHashCode();
            }
            if (MaxHeight != 0F)
            {
                hash ^= MaxHeight.GetHashCode();
            }
            if (UseIntensityFeature != false)
            {
                hash ^= UseIntensityFeature.GetHashCode();
            }
            if (UseConstantFeature != false)
            {
                hash ^= UseConstantFeature.GetHashCode();
            }
            return(hash);
        }