public bool Remove(Genotype item) { checkImmutability(); invalidateSampleNameMap(); invalidateSampleOrdering(); return(Genotypes.Remove(item)); }
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"); } }