Passing a Double parameter that has no value
Posted on 2006-06-14
I have a line of code that looks like so:
empGradeSale = empGradeSalHome.create(ref tempAux8, ref tempAux9, grdDto.EmpPySchdCd, ref tempAux10, ref null, ref null, ref null, ref null, ref null, ref null, grdDto.LastUpdatedBy);
My problem is the "ref null". The method they are being passed to requires them to be doubles or longs. In C# you can't convert nulls to doubles or longs. What do you do when you want to pass a variable that is a double or long but it has no value?