/// <summary> /// Returns true if the objects are equal. /// </summary> public override bool Equals(DockingPort other) { return (!ReferenceEquals(other, null) && Part == other.Part && port.Equals(other.port) && (shield == other.shield || shield.Equals(other.shield))); }