日期:2014-05-18  浏览次数:20504 次

关于C#与VB的一个转化问题!请进来看看吧
DirectoryInfo   dire   =   new   DirectoryInfo( "路径 ");
FileInfo[]   files   =   dire.GetFiles();
long   length   =   0;
for   each   (FileInfo   file   in   files)
{
length   +=   file.Length;
}

FileInfo   file   in   files怎么转化成VB.net语句啊?有没有VB高手帮我看看啊!

------解决方案--------------------
file as FileInfo in files
------解决方案--------------------
For Each file AS FileInfo In files