override public bool Equals(object?obj) { if (!(obj is Xref)) { return(false); } if (obj == this) { return(true); } Xref other = (Xref)obj; if (!Idref.Equals(other.Idref)) { return(false); } // if (false) { // // TODO: make this configurable? // // xref comments are treated as semi-invisible // if (annotation == null && other.annotation == null) { // return true; // } // if (annotation == null || other.annotation == null) { // return false; // } // return annotation.equals(other.annotation); // } return(true); }
public void AddXref(Xref xref) { Xrefs.Add(xref); }