using System; class MainClass { public static void Main() { int? count = null; int? result = null; int incr = 10; count = 100; result = count + incr; if(result.HasValue) Console.WriteLine("result has this value: " + result.Value); else Console.WriteLine("result has no value"); } }
result has this value: 110