The question already explains what I’m trying to do, here is an example:
[Display(Name = Localization.City)]
public string City { get; set; }
The error is, but (for me) doesn’t make sense: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
In order to use DisplayAttribute with resources you need to use
And don’t forget to open resource file and set access modifier to public instead of internal.