KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an ItemCollection that I'd like to query using LINQ. I tried the following (contrived) example: var lItem = from item in lListBox.Items where String.Compare(item.ToString(), "abc") == true select item; Visual Studio keeps telling me Cannot find an implementation of the query pattern for source type 'System.Windows.Controls.ItemCollection'. 'Where' not found. Consider explicitly specifying the type of the range variable 'item'. How do I fix the problem?
Tags (comma-separated)
Save Edits
Cancel