public bool IsEqualTo(NavObjectModel objectToCompare) { if (objectToCompare == null) { return(false); } if (this.ObjectLines.Count != objectToCompare.ObjectLines.Count) { return(false); } for (int i = 0; i < this.ObjectLines.Count; i++) { string lineA = GetLine(i); string lineB = objectToCompare.GetLine(i); if (!lineA.Equals(lineB)) { return(false); } } return(true); }
public bool IsCodeEqual(NavObjectModel objectToCompare) { if (objectToCompare == null) { return(false); } if (this.Code.Count != objectToCompare.Code.Count) { return(false); } for (int i = 0; i < this.Code.Count; i++) { string lineA = this.Code[i]; string lineB = string.Empty; if (objectToCompare.Code.Count > i) { lineB = objectToCompare.Code[i]; } if (!lineA.Equals(lineB)) { return(false); } } return(true); }
public bool IsExisting(NavObjectModel objectToCompare) { if (objectToCompare == null) { return(false); } return(true); }