I need to save the lookup table as an instance member in one of my classes. When the object is created, the table will be initialized. Each "row" will have 3 "columns":
StringKey (e.g., "car")
EnumKey (e.g., LookupKeys.Car)
Value (e.g, "Ths is a car.")
I want to choose a data structure that will give the best performance for performing searches using either StringKey or EnumKey.
It's awkward having 2 keys for the same vocabulary value. I have never encountered this before, so I wonder what the norm is for this type of thing.
I can create a Key / Value / Value structure instead of Key / Key / Value, but I'm wondering what type of performance impact it will have.
I think this is all wrong?
source
share