This link might help

http://blogs.msdn.com/b/doriancoromp...ile-loops.aspx