I have my View bound to IEnumerable<MyViewModel>.
MyViewModel class is annotated with a DisplayName like this:
[DisplayName("My other Display Name")]
public class MyViewModel
{
...
}
In my views which are directly bound to "MyViewModel" I used Html.DisplayNameForModel() and it works.
For the case of IEnumerable... I think Html.DisplayNameForInnerType... could be used but unfortunately I cannot help myself to find the expression required here.
Can anyone help with an example of how to use Html.DisplayNameForInnerType?
UPDATE1:
To answer a question in the comments: It is about ASP.Net Core 1.1

However, I coulnd't find it in the MS documentation.