Exemplo n.º 1
0
 public bool Remove(Genotype item)
 {
     checkImmutability();
     invalidateSampleNameMap();
     invalidateSampleOrdering();
     return(Genotypes.Remove(item));
 }
Exemplo n.º 2
0
        public void RemoveAll(IEnumerable <Genotype> objects)
        {
            checkImmutability();
            invalidateSampleNameMap();
            invalidateSampleOrdering();
            bool toRet = true;

            foreach (var o in objects)
            {
                toRet = toRet & Genotypes.Remove(o);
            }
            if (!toRet)
            {
                throw new ArgumentException("Tried to remove genotype from context that was not in the collection");
            }
        }