DirectoryInfo类的实例对象用于获得指定目录下所有文件的方法是( )。
A.GetDirectories
B.GetFiles
C.GetHashCode
D.GetObjectData
正确答案是B