public int Remove(BoostSourceType sourceType) { List <BoostInfo> typedBoosts = FilterBoosts(sourceType); foreach (var boost in typedBoosts) { Boosts.Remove(boost.Id); } return(typedBoosts.Count); }
public bool Remove(string id) { if (Boosts.ContainsKey(id)) { Boosts.Remove(id); Recompute(); return(true); } return(false); }