Please help me with this question. I thought that Linq works on a collection or an array. How come Linq works on a single string variable.
Share
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.
LINQ To Objects works primarily on
IEnumerable<T>, the canonical interface for sequences of a specified type.System.StringimplementsIEnumerable<char>, meaning that it can be viewed as a sequence of characters.LINQ itself is a pattern, more than anything. It’s not restricted to
IEnumerable<T>orIQueryable<T>for that matter.