Views are compiled in a separate dynamically generated assembly by ASP.NET runtime. Therefore, you cannot use internal properties. Of course, you may have internal properties on your model, but as soon as you map them to the view model, there will be no problems, since you should always pass the view model to the view.
Conclusion: Always use only public properties on view models.
source share