Home > .Net > How to assign a nullable parameter into not nullable

How to assign a nullable parameter into not nullable

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

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

Comments are closed.

TOP