public static int AddCount(int id, int n, Hashtable ht) { int count = GameHandler.GetCount(id, ht); if(ht.ContainsKey(id)) { ht.Remove(id); } count += n; ht.Add(id, count); return count; }