PurplePen.CourseObj.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if ((object) obj == (object) this)
                return true;

            if (obj == null || GetType() != obj.GetType()) {
                return false;
            }

            CourseObj other = (CourseObj) obj;
            if (other.layer != layer || other.controlId != controlId || other.courseControlId != courseControlId ||
                other.specialId != specialId || other.scaleRatio != scaleRatio || ! other.appearance.Equals(appearance))
                return false;

            return true;
        }