fork(1) download
  1. using System;
  2.  
  3. class A : System.Collections.IEnumerable
  4. {
  5. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
  6. {
  7. return null;
  8. }
  9. public void Add(string s)
  10. {
  11. Console.WriteLine("add " + s);
  12. }
  13. }
  14.  
  15. public class Test
  16. {
  17. public static void Main()
  18. {
  19. // your code goes here
  20. A a = new A{ "hello", "world "};
  21. }
  22. }
Success #stdin #stdout 0.01s 14660KB
stdin
Standard input is empty
stdout
add hello
add world