fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main(string[] args)
  6. {
  7. Console.WriteLine("Test.Main() method");
  8. }
  9. }
  10.  
  11. public class Dummy
  12. {
  13. public static void Main(){
  14. Console.WriteLine("Dummy.Main() method");
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0.01s 131648KB
stdin
a
b
compilation info
prog.cs(5,21): error CS0017: Program `prog.exe' has more than one entry point defined: `Test.Main(string[])'
prog.cs(13,21): error CS0017: Program `prog.exe' has more than one entry point defined: `Dummy.Main()'
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty