From http://stackoverflow.com/questions/200574/linq-equivalent-of-foreach-for-ienumerablet