public bool Equals(EplanLabellingDocumentPageLine other) { if (other == null) { return(false); } return(this.Label.Equals(other.Label)); }
public int CompareTo(object obj) { if (obj == null) { return(1); } EplanLabellingDocumentPageLine otherPageLine = obj as EplanLabellingDocumentPageLine; if (otherPageLine != null) { return(this.Label.CompareTo(otherPageLine.Label)); } else { throw new ArgumentException("Object is not a PageLine"); } }
public int CompareTo(EplanLabellingDocumentPageLine comparePart) { // A null value means that this object is greater. if (comparePart == null) { return(1); } else { if (this.Label.CompareTo(comparePart.Label) != 0) { return(this.Label.CompareTo(comparePart.Label)); } else { return(0); } } }