public int Count(T key) { IntegerHolder val = dict[key]; if (val != null) { return(val.i); } return(0); }
public void Add(T key) { IntegerHolder val = dict[key]; if (val != null) { val.i++; } else { dict.Add(key, new IntegerHolder()); } }
public int Count(T key) { IntegerHolder val = dict[key]; if (val != null) { return(val.i); } return(0); }
public void Add(T key) { IntegerHolder val = dict[key]; if (val != null) { val.i++; } else { dict.Add(key, new IntegerHolder()); } }