How to assign a nullable parameter into not nullable

Filed in .Net Leave a comment

The profile paramerter is defined nullable whereas my method GetAddressesByAId must require an integer.

objBillAddresses = objCustomerProxy.GetAddressesByAId(Profile.BillIdCheckOut.GetValueOrDefault(0));

TOP