Replace foreach with LINQ expressions

git-svn-id: svn://svn.code.sf.net/p/autowikibrowser/code@10311 5227b50d-9349-4574-b055-4b0a7525e11c