This fails with a There is no implicit conversion between \'null\' and \'int\'
There is no implicit conversion between \'null\' and \'int\'
long? myVar = Int64.Parse( myOtherVar) == 0 ? null : Int64.Parse(
I am sure you meant to say:
myVar = value == 0 ? null : (long?)value;
instead of
myVar = value == 0 ? null : value;
I liked the usage of the 'out' variable. Thanks.