PurplePen.RectSpecialCourseObj.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            RectSpecialCourseObj other = obj as RectSpecialCourseObj;
            if (other == null)
                return false;
            if (!other.color.Equals(color))
                return false;
            if (other.lineKind != lineKind)
                return false;
            if (other.lineWidth != lineWidth)
                return false;
            if (other.gapSize != gapSize)
                return false;
            if (other.dashSize != dashSize)
                return false;
            if (other.cornerRadius != cornerRadius)
                return false;

            return base.Equals(obj);
        }