Suppose I have a model and a view that displays these properties of a model.
public class UserModel
{
public string UserName { get; set; }
.................
}
somewhere in the view ...
<%= Model.UserName %>
Now I’ll rename one of the properties (for example, UserName => FullUserName), VS will offer to perform refactoring, which means renaming references to this property within the entire project. It will actually work everywhere in the code, except in the views.
Why? There is a parameter that must have views compiled in the project assembly. Why doesn't he also perform simple little refactoring?
Is there any way to convince him?
source
share