This is a relatively simple quesiton I would expect. But in C#, if I have a list of items (names of items). I want to load them into a collection or something. Waht is the best way to do that?
An array, a collection or something...
I want to do something like:
Then I will end up seeing if a value doesn't exist in that list.
So, I the list contains some fruits:
I want those to go into a list.
then I will eventually want to use like:
"Nut" and see if it exists in that list.
What is the best way to do that?