示例#1
0
文件: Xref.cs 项目: Ozzard/owlapi.Net
        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);
        }
示例#2
0
 public void AddXref(Xref xref)
 {
     Xrefs.Add(xref);
 }