fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public delegate int ElCallback(int K);
  6. public static void HacerAlgoPalCallback(bool Valor, ElCallback T) {
  7. if (Valor)
  8. T(10);
  9. }
  10. public static void Main()
  11. {
  12. HacerAlgoPalCallback(true, x => { Console.WriteLine(x + 10); return 0; });
  13. }
  14. }
Success #stdin #stdout 0.02s 14564KB
stdin
Standard input is empty
stdout
20