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

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

            hashCode = hashCode * -1521134295 + Stretch.GetHashCode();
            hashCode = hashCode * -1521134295 + Style.GetHashCode();
            hashCode = hashCode * -1521134295 + Weight.GetHashCode();
            hashCode = hashCode * -1521134295 + Size.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            var hashCode = base.GetHashCode();

            unchecked {
                hashCode = hashCode * -1521134295 + AlignmentX.GetHashCode();
                hashCode = hashCode * -1521134295 + AlignmentY.GetHashCode();
                hashCode = hashCode * -1521134295 + Stretch.GetHashCode();
                hashCode = hashCode * -1521134295 + TileMode.GetHashCode();
                hashCode = hashCode * -1521134295 + ViewBox.GetHashCode();
                hashCode = hashCode * -1521134295 + ViewBoxUnits.GetHashCode();
                hashCode = hashCode * -1521134295 + ViewPort.GetHashCode();
                hashCode = hashCode * -1521134295 + ViewPortUnits.GetHashCode();
            }
            return(hashCode);
        }