110,538
社区成员
发帖
与我相关
我的任务
分享
Dictionary<string, string> dic = new Dictionary<string, string>();
dic.Add("111", "111");
dic.Add("222", "222");
Dictionary<string, string>.Enumerator e = dic.GetEnumerator();
while (e.MoveNext())
{
int i = Convert.ToInt32(e.Current.Key);
int j = Convert.ToInt32(e.Current.Value);
}
Dictionary<string, string> dd = new Dictionary<string, string>();
dd.Add("1","1");
dd.Add("2","2");
foreach(string a in dd.Keys)
{
int aa=Convert.ToInt32(a);
}
foreach (string b in dd.Values)
{
int bb=Convert.ToInt32(b);
}