Dictionary 检测key是否存在

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

  

猜你喜欢

转载自www.cnblogs.com/lbonet/p/10368700.html
今日推荐