I get null reference with the following code, how do I properly assign
the result
variable to the new list:
var result = from loan in loansList
where loan.supervisorID == "1188775"
select loan;
List<Loan> ayumiLoans = new List<Loan>();
ayumiLoans = result as List<Loan>;
foreach (Loan aLoan in ayumiLoans )
{
aLoan.printLoan();
}