示例#1
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Marker other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Color == other.Color ||
                     Color != null &&
                     Color.Equals(other.Color)
                     ) &&
                 (
                     Opacity == other.Opacity ||
                     Opacity != null &&
                     Opacity.Equals(other.Opacity)
                 ) &&
                 (
                     Blend == other.Blend ||
                     Blend != null &&
                     Blend.Equals(other.Blend)
                 ) &&
                 (
                     SizeMin == other.SizeMin ||
                     SizeMin != null &&
                     SizeMin.Equals(other.SizeMin)
                 ) &&
                 (
                     SizeMax == other.SizeMax ||
                     SizeMax != null &&
                     SizeMax.Equals(other.SizeMax)
                 ) &&
                 (
                     Border == other.Border ||
                     Border != null &&
                     Border.Equals(other.Border)
                 ));
        }