Last post Oct 11, 2011 04:13 PM by NickLocke
Oct 09, 2011 04:45 AM|NickLocke|LINK
Not really localisation, but I suspect this forum has the best knowledge of using resource files. This code:
as expected, calls my GenerateValidationError method, passing in some string like "The specified customer number was invalid". That's not quite what I want to do. In my method, I need to do some more related resource lookups and the like. So, what I really
want is for the argument passed to my method to be the underlying key value and not the resolved string - in other words, in this example it would be simply "InvalidCustomerNumber".
I'm struggling to work out how to take advantage of the strong typing (so that I can't specify an invalid resources key in the code) but, at the same time, keep it as the key value when it's passed to my method, rather than actually looking it up.
Hopefully I'm missing something simple and obvious.
Thanks for any pointers,
Oct 11, 2011 04:13 PM|NickLocke|LINK
I'm still wrestling this one. Anybody? Thanks, Nick.