I have 2 sortedList. The 2 sortedList code are shown below. May i know how to compare these 2 sortedList?
public void Display()
{
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");
}
}
public void Display1()
{
richTextBox2.Clear();
foreach (String sort1 in txtCaseInputs.Lines)
{
if (!(sortList1.ContainsKey(sort1)))
{
sortList1.Add(sort1, 1);
}
else
{
int Count = (int)sortList1[sort1];
sortList1[sort1] = Count + 1;
}
}
IDictionaryEnumerator enumerator1 = sortList1.GetEnumerator();
while (enumerator1.MoveNext())
{
richTextBox2.AppendText("(" + enumerator1.Key.ToString() + "): " + " " + enumerator1.Value.ToString() + "\n");
}
}