C# Dictionary判断Key是否存在

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

猜你喜欢

转载自www.cnblogs.com/yinmu/p/12196582.html