How do i retrieve a value from a resources file based on the key?
I've got a resources file called GlobalStrings.resx
:
I would like to be able to pass in Sheepsmilk
and get back Sheep's milk
How do i retrieve a value from a resources file based on the key?
I've attempted like so:
Dim milk = My.Resources.GlobalStrings["Sheepsmilk"]
however, i'm getting the following exception:
'GlobalStrings' is a class type and cannot be used as an expression.