Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- before
- foreach (var file in files)
- {
- if (!Results.CheckFile(file))
- {
- MessageBox.Show(String.Format("File {0} has unknown format.", file));
- return;
- }
- }
- -- after
- foreach (var file in files.Where(file => !Results.CheckFile(file)))
- {
- MessageBox.Show(String.Format("File {0} has unknown format.", file));
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment