How can use projection to select with where clause specification?
Perhaps something like?:
List<string> Titles =
iEnumerableResultSet.Select(x => x.Title = "Whatever", x=> x.Id =5).ToList();
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.
In my opinion,
Selectis poorly named. It is suppose to remind you ofSELECTfrom SQL. That is, you specify the values that you want for each object in collection that you areSelecting over (if you know functional programmingSelectis the same as map).To filter, what you want is
Where:Now, your question seems to be asking how to both filter and project. You can say
You can think of this as being like the SQL query