using System;
using System.Globalization;
using System.Linq;
using System.Collections.Generic;
public class Test
{
public static void Main()
{
double? previousValue = null;
double? v1 = 1 + previousValue ?? 0;
double? v2 = 1 + (previousValue ?? 0);
Console.WriteLine("V1.Hasvalue? {0} V1.Value:{1}",v1.HasValue, v1.Value);
Console.WriteLine("V2.Hasvalue? {0} V2.Value:{1}",v2.HasValue, v2.Value);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uR2xvYmFsaXphdGlvbjsKdXNpbmcgU3lzdGVtLkxpbnE7CnVzaW5nIFN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljOwoKcHVibGljIGNsYXNzIFRlc3QKewogICAgCgoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIGRvdWJsZT8gcHJldmlvdXNWYWx1ZSA9IG51bGw7CiAgICAgICAgZG91YmxlPyB2MSA9IDEgKyBwcmV2aW91c1ZhbHVlID8/IDA7CiAgICAgICAgZG91YmxlPyB2MiA9IDEgKyAocHJldmlvdXNWYWx1ZSA/PyAwKTsKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgiVjEuSGFzdmFsdWU/IHswfSBWMS5WYWx1ZTp7MX0iLHYxLkhhc1ZhbHVlLCB2MS5WYWx1ZSk7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlYyLkhhc3ZhbHVlPyB7MH0gVjIuVmFsdWU6ezF9Iix2Mi5IYXNWYWx1ZSwgdjIuVmFsdWUpOwoJfQp9