Use foreach instead of Extension method due to mono compiler bug.

https://bugzilla.xamarin.com/show_bug.cgi?id=16513
Merge pull request #95 from alistair/mono_compile_error

Use foreach instead of Extension method due to mono compiler bug.