📅  最后修改于: 2022-03-11 14:49:18.102000             🧑  作者: Mango
public static void Increment(this Dictionary dictionary, T key)
{
int count;
dictionary.TryGetValue(key, out count);
dictionary[key] = count + 1;
}