Beispiel #1
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 public bool Equals(RegulatoryElement value)
 {
     if (this == null)
     {
         throw new NullReferenceException();
     }
     if (value == null)
     {
         return(false);
     }
     if (this == value)
     {
         return(true);
     }
     return(Start == value.Start && End == value.End && Id.Equals(value.Id));
 }
Beispiel #2
0
 public bool Equals(Gene value)
 {
     if (this == null)
     {
         throw new NullReferenceException();
     }
     if (value == null)
     {
         return(false);
     }
     if (this == value)
     {
         return(true);
     }
     return(ReferenceIndex == value.ReferenceIndex && End == value.End && Start == value.Start &&
            _hgncId == value._hgncId && Symbol == value.Symbol && EntrezGeneId.Equals(value.EntrezGeneId) &&
            EnsemblId.Equals(value.EnsemblId));
 }