_directoryInfo.GetDirectories().Length +_directoryInfo.GetFiles().Length
谢谢.
GetFileSystemInfos()
_directoryInfo.GetFileSystemInfos().Length