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
Search through string in a string
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaish MathewsRank #225 · 11K reputationPosted Apr 14, 2010, 6:57 AM EDT
SortedList<int, string> sl = new SortedList<int, string>();
sl.Add(2, "st1");
sl.Add(5, "st2");
sl.Add(1, "str3");
Sam HobbsRank #107 · 20.5K reputationPosted Apr 15, 2010, 10:31 AM EDT