コード例 #1
0
 void CreateStructure(IFileSystemItem[] fileSystemItems)
 {
     foreach (var fs in fileSystemItems.OfType<IDirectory>())
         fs.MustExist();
     foreach (var fs in fileSystemItems.OfType<IFile>())
         fs.MustExist();
 }