4
votes
2answers
3k views

Iterate through discussion list

I have SharePoint 2007 discussion list. I want to iterate over all items in the list, so I do the following: var list = web.Lists["discussion"]; var listItems = list.Items; foreach (var listItem in ...