111,098
社区成员




Dictionary<int,String> dic = new Dictionary<int,String>();
if(dic.Keys[key]!=null)
{
//存在key键对应的值
}
else
{
//不存在key键对应的值
}
public object GetKey(string str)
{
foreach (KeyValuePair<int, string> kp in dic )
{
if (kp.Value != "")
{
return kp.Key;
}
}
return null;
}