fork download
  1.  
  2. using System;
  3.  
  4. class Test{
  5. static void Main(){
  6. new Test().test();
  7. }
  8. void test(){
  9. f("aa");
  10. f_ = delegate(String s) { };
  11. f("bb");
  12. }
  13.  
  14. public Action<String> f { get { return f_; } }
  15. private Action<String> f_ = delegate(String s){
  16. Console.WriteLine(s);
  17. };
  18. }
Success #stdin #stdout 0.03s 36904KB
stdin
Standard input is empty
stdout
aa