fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApp1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. ClassLibrary1.Class1 class1 = new ClassLibrary1.Class1();
  13. bool b = false;
  14. b = class1.ReadFile(args[0]);
  15. if (b) class1.ViewFile();
  16. Console.ReadKey();
  17. }
  18. }
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(12,13): error CS0246: The type or namespace name `ClassLibrary1' could not be found. Are you missing an assembly reference?
prog.cs(14,17): error CS0841: A local variable `class1' cannot be used before it is declared
prog.cs(15,20): error CS0841: A local variable `class1' cannot be used before it is declared
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty