How to read the resultset from LINQ to IEnumerable
IEnumerable<FundsReceiptBatchDetails> batchIds =
(from frBatchids in lstfrbd select new { frBatchids.FundsReceiptBatchID }).Distinct().ToList() as
IEnumerable<FundsReceiptBatchDetails>;
I am getting exception like object reference is not set to instance of the object.
.NET Programming
Last Comment
Fernando Soto
8/22/2022 - Mon
Bob Learned
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<FundsReceiptBatchDetails> myself.