Hi there,
I am trying to Add 2 Nullable Doubles and return a Nullable Double. The problem is when you add a null to a double value it returns a null .... I would like the null to behave as 0 in this instance i.e. 2.5 +null=2.5 . When you add 2 null values I would like it to return null (not zero). I have created a method but it seems a little long winded to me and not very flexible.
If I wanted to add 10 numbers it would be very cumbersome to use, and I would need to do special delete method if I wanted to delete 2 numbers
Are the any special functions out there for Arithmetic operations on Nullable Types .... what way would an experienced programmer approach this situation?
public Double? AddNullableDouble(Double? a, Go to the complete details ...