public bool Equals(AnnotationSet other) { var result = Count == other.Count; if (result) { for (var i = 0; i < Count; i++) { result &= this[i].Equals(other[i]); } } return(result); }
public bool Equals(AnnotationSet other) { if (other == null) { return(false); } if (Count != other.Count) { return(false); } for (var i = 0; i < Count; i++) { if (!this[i].Equals(other[i])) { return(false); } } return(true); }