Problem in LINQ query formation

Posted by Newbie on Stack Overflow See other posts from Stack Overflow or by Newbie
Published on 2010-05-21T03:22:06Z Indexed on 2010/05/21 3:30 UTC
Read the original article Hit count: 137

Filed under:

I have written

List<int> Uids = new List<int>();

    Uids = (from returnResultSet in ds.ToList()
                             from portfolioReturn in returnResultSet.Portfolios
                             from baseRecord in portfolioReturn.ChildData
                             select new int 
                             {
                                 id = baseRecord.Id
                             }).ToList<int>();

Getting error: 'int' does not contain a definition for 'id'

what is the problem that i created?

Thanks

© Stack Overflow or respective owner

Related posts about c#3.0