求助 关于数组问题 为什么我取不到这个数组的值呢
string[] arrShowLine = new string[2];
for (int i = 0; i < files.Count; i++)
{
HttpPostedFile postedfile = files[i];
if (postedfile.ContentLength > 0)
{
//上传
Upload.file_Upload(postedfile, defaultfolder, this);
arrShowLine[i]= "UploadPhotos/" + Upload.file_Upload(postedfile, defaultfolder, this);
}
}
string abc= arrShowLine[0].ToString()
这个数组的值 arrShowLine[0].ToString() 可以直接引用吗 我为什么取不到这个值啊 如果为空的化就无效吗