kravindra
asked on
How to read the resultset from LINQ to IEnumerable
IEnumerable<FundsReceiptBa tchDetails > batchIds =
(from frBatchids in lstfrbd select new { frBatchids.FundsReceiptBat chID }).Distinct().ToList() as
IEnumerable<FundsReceiptBa tchDetails >;
I am getting exception like object reference is not set to instance of the object.
(from frBatchids in lstfrbd select new { frBatchids.FundsReceiptBat
IEnumerable<FundsReceiptBa
I am getting exception like object reference is not set to instance of the object.
There are a few possibilities. I am confused, though, why you would create a generics List, and thant convert it back to IEnumerable, which is what form it was in before the ToList call. I prefer to work with List<FundsReceiptBatchDeta ils> myself.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi kravindra; did this work for you?