Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void AddXref(Xref xref)
 {
     Xrefs.Add(xref);
 }