|
-
Feb 16th, 2011, 02:58 PM
#1
Thread Starter
Addicted Member
[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>...
-
Feb 16th, 2011, 03:05 PM
#2
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.
-
Feb 17th, 2011, 03:59 AM
#3
Thread Starter
Addicted Member
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.
Last edited by Blagojce; Feb 17th, 2011 at 10:32 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|