public void RemoveAll(TCGASampleType stype) { var keys = BarInfoListMap.Keys.ToList(); foreach (var key in keys) { if (TCGAUtils.GetSampleType(key) == stype) { BarInfoListMap.Remove(key); } } }
public static bool HasSample(this Dictionary <TCGATechnologyType, Dictionary <TCGASampleType, List <BarInfo> > > tumormap, TCGASampleType sType) { return(tumormap.Sum(m => m.Value[sType].Count) > 0); }