[RESOLVED] How to store many strings?
I've got one function which collect registry keys and store in strings.
I've got another function which should to iterate through each item(registry key for application) and extract each string(name, location,...) from each item( registry key for application).
At the end of first function I concatenate each information about one application in one string, and at the beginning of second function split same string.
Is this the best way or is better to use List<string,string> or Array?
But I have more than two information I need to store, so I can't use List<string, string>...
Re: How to store many strings?
If you have more than 1 (unrelated) items to store per row, you can create a class/structure with appropriate public properties, and then use List of that class/structure.
If the two items are related, say they are key/value pair etc. then use more specific class. e.g. Dictionary or HashTable etc.
The choice of what to use depends entirely on your needs.
Re: How to store many strings?
I need to display uninstall string of item, when the name of item is found.
Ok, I think I got it!
Thanks for advice.