Ejemplo n.º 1
0
 public static IEnumerable <SystemPath> List(SystemPath sourceFile)
 {
     sourceFile = sourceFile ?? throw new ArgumentNullException(nameof(sourceFile));
     foreach (var entry in sourceFile.ToDirectory().EnumerateFileSystemInfos())
     {
         yield return(new SystemPath(entry));
     }
 }