[求助]c# for循环的内容赋给变量
string aa="";
for(int iFile=0;iFile<files.Count;iFile++)
{
string fileName="";
HttpPostedFile postedFile = files[iFile];
fileName = postedFile.FileName;
fileName = System.IO.Path.GetFileName(fileName);
fileName = fileName + ";";
}
for(int iFile=0;iFile<files.Count;iFile++)
{
string fileName="";
HttpPostedFile postedFile = files[iFile];
fileName = postedFile.FileName;
fileName = System.IO.Path.GetFileName(fileName);
fileName = fileName + ";";
}
请问要怎么才能把fileName的值赋给aa;