source : http://stackoverflow.com/a/5995418
1
v2 = v1 ?? default(int);
Also, as of .NET 4.0, Nullable
1
v2 = v1.GetValueOrDefault();
//traditional jsif(v1.HasValue) v2=v1.Value
</t>
origin - http://www.pipiscrew.com/?p=2757 csharp-nullable-int-to-int