fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. delegate void TestDelegate(string s);
  6.  
  7. public static void Main()
  8. {
  9.  
  10. TestDelegate test;
  11. test = (s => Console.WriteLine(s));
  12. test += (s => Console.WriteLine(s));
  13. test += (s => Console.WriteLine(s));
  14.  
  15. test("foo");
  16. }
  17. }
Success #stdin #stdout 0.02s 16028KB
stdin
Standard input is empty
stdout
foo
foo
foo