fork download
  1. using System;
  2. public class Test : IEnumerable
  3. {
  4. public int a { get; set; }
  5. public string b { get; set; }
  6. public double c { get; set; }
  7. IEnumerator IEnumerable.GetEnumerator()
  8. {
  9. yield return a;
  10. yield return b;
  11. yield return c;
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(2,21): error CS0246: The type or namespace name `IEnumerable' could not be found. Are you missing `System.Collections' using directive?
prog.cs(7,14): error CS0246: The type or namespace name `IEnumerable' could not be found. Are you missing `System.Collections' using directive?
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty