We know that if we define a template for a base type, that template could serve also for the derived types (if any other template was not used to override it).
As we can't inherit an
s are considered inherited from the
, so neither the
template in the
will not be active for different custom enum properties of the objects, like this one:
public enum Role
I already saw some answers on this topic for ASP in general, but I am wondering if in MVC 4
there are some improvements on this subject?
PS. I mean without
use any explicit template attribution (like
@Html.EditorFor(model => model.Role, "Enum")
PPS. I am novice in MVC, so I'll appreciate your simple answers.