I am writing a parser which calls some functions dependent on some value.
I can implement this logic with simple switch like this:
switch(some_val)
If you need to switch on strings in a resource file, say for globalization purposes, then you'll need to use the dictionary/delegate approach.