TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
y s
NA
2.6k
26.4k
how to extract double itemset from sortedList
Apr 4 2011 2:46 PM
(1): 4
(2): 4
(1 2): 3
(3): 4
(1 3): 3
(2 3): 3
(1 2 3): 2
Above are show my sortedList.
may i know how to extract the double itemset and store in another new sortedList?
my expected output in my new sortedList are:
(1 2): 3
(1 3): 3
(2 3): 3
(1 2 3): 2
below are shown the coding for my sortedList1:
foreach (String sort in lbCombinations.Items)
{
if (!(sortList.ContainsKey(sort)))
{
sortList.Add(sort, 1);
}
else
{
int Count = (int)sortList[sort];
sortList[sort] = Count + 1;
}
}
IDictionaryEnumerator enumerator = sortList.GetEnumerator();
richTextBox1.Clear();
while (enumerator.MoveNext())
{
richTextBox1.AppendText("(" + enumerator.Key.ToString() + "): " + " " + enumerator.Value.ToString() + "\n");
}
hope anyone can help me..
Reply
Answers (
6
)
Update codes in DataGrid
Control display priorty