I’m trying to do the following:
[FooAttribute(Value = String.Format("{0} - {1}", myReources.BaseString, "Bar"))]
public int FooBar { get; set; }
The compiler complains though… so what is the correct way to do it where I have my BaseString in one location? My code is littered with attributes on the properties inside my library, so “global” internal const sound like the solution since I can’t use resources.
You can’t have expressions like string.Format in an attribute…but the following should work: