I need to determine the number of files/subdirectories in a directory. I don't care which files/directories are actually in that directory. Is there a more efficient way than using
_directoryInfo.GetDirectories().Length +
_directoryInfo.GetFiles().Length
Thanks.