fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace プロパティにデリケートを突っ込む__
  7. {
  8. delegate int DG();
  9. class Program
  10. {
  11. static int N = 0;
  12. static int i { get { return N; } }
  13. static void Main(string[] args)
  14. {
  15. //DG A = (DG)i;//不可??
  16. DG B = () => { return i; };
  17. }
  18. }
  19. }
Success #stdin #stdout 0.03s 36576KB
stdin
Standard input is empty
stdout
Standard output is empty