ItemCollection
LINQ を使用してクエリを実行したい があります。次の(不自然な)例を試しました:
var lItem =
from item in lListBox.Items
where String.Compare(item.ToString(), "abc") == true
select item;
Visual Studioは私に言い続けます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'.
問題を解決するにはどうすればよいですか?