fork(1) download
  1. using System;
  2. using System.Collections;
  3.  
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. new CrazyAdd {
  10. {1,2,3},
  11. {4,5,6}
  12. };
  13. }
  14.  
  15. class CrazyAdd : IEnumerable
  16. {
  17. public void Add(int x, int y, int z)
  18. {
  19. Console.WriteLine(x + y + z);
  20. }
  21.  
  22. public IEnumerator GetEnumerator() { throw new NotImplementedException(); }
  23. }
  24. }
Success #stdin #stdout 0.03s 36968KB
stdin
Standard input is empty
stdout
6
15