string MethodOneInSomeClass() { return App.GetText("GetSiteName") }in this case I have to add
KeyName KeyValue "GetSiteName" "London"to the lookup table, I got bitten by this recently ( i.e. forgot to add the record ) and am trying to think of a way to avoid doing so in the future - one way I've thought might be ok, is, decorate all the methods that use the function with a custom attribute, e.g.
[GetTextAttribute("GetSiteName")] string MethodOneInSomeClass() { return App.GetText("GetSiteName") }and in the app use Reflection to list all attributes of type "GetTextAttribute" that are not present in the lookup table. Does this seem a reasonable approach ?