score:18

Accepted answer

the function expects a list(of manufacturer) return type, not an ienumerable(of manufacturer), so adding a .tolist() to the return value should fix it:

return allmfrs.except(unavailablemfrs).tolist()

score:3

your function is declared as returning list(of manufacturer), but your return statement is returning only an ienumerable(of manufacturer). change the return statement to:

return allmfrs.except(unavailablemfrs).tolist()

if you turn option strict on, i believe vb will catch this kind of error at compile time, instead of blowing up at runtime.

score:3

the problem is that enumerable.except returns ienumerable<t>, but your return type is list(of t).

change your last line to:

return allmfrs.except(unavailablemfrs).tolist()

Related Query