string[] getAllTex = hid_SetValue.Value.ToString().Split('|');
//List<ItemSetValue> item = new List<ItemSetValue>();
List<string> strList = new List<string>();
for (int i = 0; i < getAllTex.Length; i++)
{
strList.Add(getAllTex[i]);
}
foreach (var item in strList)
{
pg.SetKey = item.Split(',')[0];
pg.SetValue = item.Split(',')[1];
pgRep.Add(pg);
}
弄出来了
//List<ItemSetValue> item = new List<ItemSetValue>();
List<string> strList = new List<string>();
for (int i = 0; i < getAllTex.Length; i++)
{
strList.Add(getAllTex[i]);
}
foreach (var item in strList)
{
pg.SetKey = item.Split(',')[0];
pg.SetValue = item.Split(',')[1];
pgRep.Add(pg);
}
弄出来了
MessageBox.Show(string.Join("-", aa));
西哈::Hashtable 嘻哈 = new 西哈::Hashtable();
for (int a = 0; a < aa.Length - 1; a += 2)
嘻哈.Add(aa[a], aa[a + 1]);
http://blog.csdn.net/xianfajushi/article/details/38982589
我这样写,跑代码的时候会报{"属性“SetKey”是对象的键信息的一部分,不能修改。"} 这是什么问题?
我这样写,跑代码的时候会报{"属性“SetKey”是对象的键信息的一部分,不能修改。"} 这是什么问题?
.Select(x => x.Split(',')).ToDictionary(x => x[0], x => x[1]);