void CreateStructure(IFileSystemItem[] fileSystemItems) { foreach (var fs in fileSystemItems.OfType<IDirectory>()) fs.MustExist(); foreach (var fs in fileSystemItems.OfType<IFile>()) fs.MustExist(); }
void CreateStructure(IFileSystemItem[] fileSystemItems) { foreach (var fs in fileSystemItems.OfType<IDirectory>()) fs.MustExist(); foreach (var fs in fileSystemItems.OfType<IFile>()) fs.MustExist(); }