public bool Equals(Locus l) { if ((System.Object)l == null) { return(false); } // Return true if the fields match: return(l.name == this.name && l.paternalAllele == this.maternalAllele && l.paternalAllele == this.paternalAllele); }
public bool Equals(Locus l) { if ((System.Object)l == null) { return false; } // Return true if the fields match: return l.name == this.name && l.paternalAllele == this.maternalAllele && l.paternalAllele == this.paternalAllele; }
public bool AddLocus(Locus l) { if (loci.Contains(l)) { return(false); } else { loci.Add(l); return(true); } }
public override bool Equals(Object obj) { // If parameter is null return false. if (obj == null) { return(false); } // If parameter cannot be cast to Point return false. Locus l = obj as Locus; if ((System.Object)l == null) { return(false); } // Return true if the fields match: return(l.name == this.name && l.paternalAllele == this.maternalAllele && l.paternalAllele == this.paternalAllele); }