I have a C# variable which references a SharePoint list.
I need to iterate over each list item and do a conditional check.
I would like to use a linq call to filter out some of the data before I get into the loop.
Here is how I reference the list:
SPList list = root.Lists[LISTNAME];
And I want to do something like:
var items = from li in list.items
where li.field.Contains("value")
select li;
Is this possible? I am not sure if the standard namespace System.Linq can be used with SharePoint.
Thanks, Andrew