I need to add numerous variables of type nullable int. I used the null coalescing operator to get it down to one variable per line, but I have a feeling there is a more conc
You could do
total += sum1 ?? 0; total += sum2 ?? 0; total += sum3 ?? 0;