aspnet/Mvc — pull request #1719 by sornaks (2014-12-13 02:34:14+00:00)
Title: Bug #1354 - ViewComponent View() fails on CoreCLR with IEnumerable<> pas...

Bug #1354
Fix - When the model is passed in to a View, ViewDataDictionary sets it. During this process, we recurse through all the properties and create FastPropertyGetters for each of them. In this case, since it is an enumerable, the properties which we recurse through are not the elements of the collection but the properties of the Enumerable instead. i.e - Enumerable.Current. Creating getters for these properties are not necessary. The fix moves the property iteration step to a place where the properties are actually requested.