string bbb= "aaa,bbb,ccc,ddd,eee ";
string[] aaa=bbb.Split( ", ".ToCharArray());
for (int i = 0; i < 这里怎么获取aaa的数量; i++)
{
string[i];
}
------解决方案--------------------------------------------------------
aaa.Length
------解决方案--------------------------------------------------------
同意楼上的
------解决方案--------------------------------------------------------
aaa.Length
正确
------解决方案--------------------------------------------------------
string bbb= "aaa,bbb,ccc,ddd,eee ";
string[] aaa=bbb.Split(new char[]{ ', '});
for (int i = 0; i < aaa.Length; i++)
{
string[i];
}