Hello guys,
i'm new here and new to C# programming, but trying hard to learn it.
Question
I need to store two values (string, int) in one object. Wich object can i use best?
Situation
I'm writing a small program that is going to search through a couple of text blocks and returns how many times the word that the user has filled in by input appears in the corresponding text. After this i need to sort these items with the most returns at the top, DESC i think?
Looking forward to your replies!
beste regards,
Rob
Loading
Sam HobbsPosted Apr 15, 2010, 2:31 PM
Jaish MathewsPosted Apr 14, 2010, 10:57 AM
SortedList<int, string> sl = new SortedList<int, string>();
sl.Add(2, "st1");
sl.Add(5, "st2");
sl.Add(1, "str3");