示例#1
0
        public bool Equals([AllowNull] Symbol other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Icon == other.Icon && Icon != null && other.Icon != null && Icon.Equals(other.Icon)) &&
                   (IconSize == other.IconSize && IconSize != null && other.IconSize != null && IconSize.Equals(other.IconSize)) &&
                   (Text == other.Text && Text != null && other.Text != null && Text.Equals(other.Text)) &&
                   (Placement == other.Placement && Placement != null && other.Placement != null && Placement.Equals(other.Placement)) &&
                   (TextFont == other.TextFont && TextFont != null && other.TextFont != null && TextFont.Equals(other.TextFont)) &&
                   (TextPosition == other.TextPosition && TextPosition != null && other.TextPosition != null && TextPosition.Equals(other.TextPosition)));
        }