I am trying to do the following:
[Display(Name = Resources.LcmsBs.Models.UserName)] [ToolTip(Resources.LcmsBs.ToolTips.UserName)] public string UserName { get; set; }
I get the following compilation error:
The attribute argument must be a constant expression, a typeof expression, or an expression to create an attribute type array
What is the best practice to avoid hard-coded constants in code? Is it possible to set attribute values ββfrom resources?
source share