代码:
DirectoryInfo[] d2 = new DirectoryInfo[400];
d2 = moreDirect.GetDirectories();
//Declaring FileInfo array
FileInfo[] f = new FileInfo[300];
f = d2[z].GetFiles();
if (d2[z].Exists)
{
if (f[y] != null)
{
...
//FileInfo does it stuff and somewhere it does ++y depending on the situation blahblahblah
if (f[y] == null) <-------- Right here is where it does it! And y only equals 1 here. I checked.
{
y = 0;
fileTime = false;
break;
}
那么,有谁知道出了什么问题?我绞尽脑汁。我用谷歌搜索,我搜索了堆栈溢出。它必须是愚蠢的。我不知道。