I need this in VB.NET, and I'm getting desperate...
This was my first attempt at this question, my own approach is a complete failure - I NEED to store the card data in the app, so as an enumeration? (the card data is static, does not change). Dictionary? Please give a complete answer...
This is another cross-posted version of this question I also have open, but I'm getting C# answers that I cannot use. I'm perfectly happy to award points for both (though that's prolly not allowed):
I have a string that looks like the following, let's call it strCards = "1,1,2,2,2,3,1,3,34,34,34,
This string is always comma seperated.
These are card_ids.
The card data looks like this:
id Card Name
I need to be able to parse the strCard and list the CardName and the number of times that card_id appears in strCards in a listbox, so:
and so on...