fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication2
  11. {
  12. class MyClass<T>
  13. {
  14. }
  15.  
  16. class MyClassEx<T> : MyClass<T>
  17. {
  18. public MyClassEx() { this.Items = new List<T>(); }
  19. public List<T> Items { get; set; }
  20. }
  21.  
  22.  
  23. public partial class Form1 : Form
  24. {
  25. public Form1()
  26. {
  27. InitializeComponent();
  28.  
  29. var a = new MyClassEx<string>();
  30. a.Items.Add("test");
  31. this.Text = a.Items[0];
  32. }
  33. }
  34. }
  35.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(4,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(5,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(8,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty