fork(1) download
  1. using System;
  2. public class Cliente {
  3. private long? idade;
  4. public long Idade()
  5. {
  6. if (idade.HasValue) return idade.Value;
  7. return 0;
  8. }
  9. }
  10. public class Test
  11. {
  12. public static void Main()
  13. {
  14. var c = new Cliente();
  15. System.Console.WriteLine(c.Idade());
  16. }
  17. }
Success #stdin #stdout 0.01s 29664KB
stdin
Standard input is empty
stdout
0