Is it possible somehow to move out the string value declaration in an attribute usage?
Specifically I have:
[WebGet(UriTemplate = "/myResource/{id}")]
But I would rather have something like:
[WebGet(UriTemplate = AStaticDictionaryOrSomething["myResource"])]
The reason is that I want to avoid duplicating the uri values without having to do reflection on the class with the WebGet attribute. So the easiest way I think would be to declare the uri values in a single place, and refer to that from the attribute declaration and from elsewhere.