using System; public class Cliente { private long? idade; public long Idade() { if (idade.HasValue) return idade.Value; return 0; } } public class Test { public static void Main() { var c = new Cliente(); System.Console.WriteLine(c.Idade()); } }