fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public class Test
  6. {
  7. public string Name {get;set;}
  8. public string Status {get;set;}
  9. }
  10.  
  11. public class TestSuite
  12. {
  13. public List<Test> TestList {get;set;}
  14. }
  15.  
  16. public class Report
  17. {
  18. public List<TestSuite> TestSuits {get;set;}
  19. }
  20.  
  21. public class Model
  22. {
  23. public List<Report> Reports {get;set;}
  24. }
  25.  
  26.  
  27.  
  28. public static void Main()
  29. {
  30. // your code goes here
  31. }
  32. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(5,15): error CS0542: `Test.Test': member names cannot be the same as their enclosing type
prog.cs(3,14): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty