Is there no LINQ support for generic Lists?
MyRecord[] array = GetRecords();
List<MyRecord> list = new List<MyRecord>(array);
I am unable to do a list.Select() Are the linq methods available only on IEnumerable and IQueryable?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should work. Make sure you have
in your code file. Since Linq is based on extension methods they won’t be automatically resolved for you, so you have to add the
usingstatements yourself.