Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public bool AddLocus(Locus l)
 {
     if (loci.Contains(l))
     {
         return(false);
     }
     else
     {
         loci.Add(l);
         return(true);
     }
 }
Exemplo n.º 4
0
        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);
        }