fork download
  1. static void Main(string[] args)
  2. {
  3.  
  4.  
  5. SearchFile search = null;
  6. while (true)
  7. {
  8. Console.Write("\nКартинки - 1\nТекст - 2\nВсе - 3\nВыйти из цыкла - 4\n>>>");
  9. switch (int.Parse(Console.ReadLine()))
  10. {
  11. case 1:
  12. search = Searcher.SearchImgs;
  13. break;
  14. case 2:
  15. search = Searcher.SearchText;
  16. break;
  17. case 3:
  18. search = Searcher.SearchAll;
  19. break;
  20. case 4:
  21. Environment.Exit(0);
  22. break;
  23. default:
  24. continue;
  25. }
  26. File.AppendAllLines(path+"t.txt", search?.Invoke(path));
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,8): error CS1525: Unexpected symbol `void', expecting `class', `delegate', `enum', `interface', `partial', `ref', or `struct'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty