Я пытаюсь связать древовидное представление динамически.System.Collections.Generic.List <ActualEstimatation.frmEstimate.ItemInfo> 'не содержит определения для' Where '
Я искал в Google и нашел хорошие ссылки.
Когда я пытаюсь запустить в моей системе его показывая что-то ошибки, как этот
'System.Collections.Generic.List<ActualEstimatation.frmEstimate.ItemInfo>' does not contain a definition for 'Where' and no extension method 'Where' accepting a first argument of type 'System.Collections.Generic.List<ActualEstimatation.frmEstimate.ItemInfo>' could be found (are you missing a using directive or an assembly reference?)
Эти ссылки How to dynamically populate treeview (C#)
и решения sga101 в How to insert Datas to the Winform TreeView(C#) in effitive coding?
Я искал в Google, чтобы решить выше, но не найдено никакого решения.
Пожалуйста, помогите мне решить эту проблему.
Заранее спасибо
вы с помощью платформы .NET 3.5 или выше? –
да, я использую .net Framework3.5 – user1926138
Enumerable.Where() - метод расширения *. Поместите 'using System.Linq;' в верхней части файла исходного кода. –