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