Here is the coding.
List
L.Reverse();
L.Sort(delegate(KeyValuePair
{ return rhs.Value.CompareTo(lhs.Value); });
foreach (KeyValuePair
{
show3 += val.Key+"\r\n";
}
MessageBox.Show(show3.ToString());
List
foreach (KeyValuePair
{
show4 += pair.Key+"\r\n";
}
MessageBox.Show(show4.ToString());

VulpesRank #55 · 29.2K reputationPosted Mar 30, 2011, 7:03 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2011, 2:55 AM EDT
Sin Yee142 reputationPosted Mar 30, 2011, 4:27 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2011, 4:34 AM EDT
If there's no output, then the two lists can't have any KeyValuePairs in common.
Check what happens if you use the Union rather than the Intersect method.
Sin Yee142 reputationPosted Mar 30, 2011, 4:59 AM EDT
2
1
3
4
5
the List 2 output is like this
1 2
2 3 4
2 5
3 4 .... so, are these two List can intersect together..???
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2011, 5:09 AM EDT
The elements of the first list are all single digits.
The elements of the second list are either two or three digits.
Also I don't see any evidence of KeyValuePairs?
What output are you expecting to get?
Sin Yee142 reputationPosted Mar 30, 2011, 5:15 AM EDT
eg.
2 1
2 3 4
2 5
3 4
like this....
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2011, 5:45 AM EDT
The intersection would be:
2
(empty)
(empty)
4
The union would be:
2 1 2
1 2 3 4
3 2 5
4 3 4
and the union without duplicates would be:
2 1
1 2 3 4
3 2 5
4 3
Also I still don't see any sign of KeyValuePairs here??
Sin Yee142 reputationPosted Mar 30, 2011, 5:51 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2011, 5:55 AM EDT
Also, is it acceptable to produce an intersection of digits as I've illustrated above?
Sin Yee142 reputationPosted Mar 30, 2011, 5:59 AM EDT
Sin Yee142 reputationPosted Mar 30, 2011, 6:15 AM EDT