I have this code:
var contractsID = contracts.Select(x => x.Id); int?[] contractsIDList = contractsID.ToArray();
In this line:
int?[] contractsIDList = contractsID.ToArray();
I get this error:
It is not possible to implicitly convert the type int [] to int
what I'm trying to do is make a contractIDList Nullable type.
How to make int array Nullable?
source share