Dictionary 检测key是否存在

if(dict.ContainsKey(T key))
{
   //已存在key
}

  

原文地址:https://www.cnblogs.com/lbonet/p/10368700.html