Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
- how to create (instantiate) the array or list so that it can contain both an integer and a string on the same "row"
- add "rows" to the list, each one with an integer and a string
- sort on the integer
- access the values
if someone can point me to the first two, then I can find the others
all the examples I've found only have one element in the array or list and sort on that one element, but that will not give me the capability I need
Yes, it should. Any property (Key or Value) can serve as the sorting element for the collection, it depends which one you use. You can also exchange the KeyValuePair class for any other custom class in case you'd want to have more data stored in the object (just in case) for any further reference.