Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sample Input data

HTML
http:\\localhost\a1.aspx     a1
                             a4
                             a5
http:\\localhost\a2.aspx     a1
                             a5
http:\\localhost\a3.aspx     a4


Would be transform to Final o/p
HTML
a1   http:\\localhost\a1.aspx 
     http:\\localhost\a2.aspx

a4   http:\\localhost\a1.aspx     
     http:\\localhost\a3.aspx

a5   http:\\localhost\a2.aspx

Input object

C#
Dictionary<Uri, string[]> d1 = new Dictionary<Uri, string[]>();

Output Object

C#
Dictionary<string, Uri[]> d2 = new Dictionary<string, Uri[]>();

please help me out, need logic ...
Posted
Updated 7-May-12 4:46am
Comments
[no name] 7-May-12 10:47am    
Reason for my vote of 1
Asked and answered. Repost.
Member 8937732 7-May-12 10:52am    
in o/p
a5 http:\\localhost\a1.aspx
http:\\localhost\a2.aspx

1 solution

If you need the logic of IDictionary, you need to look at it's source code. Well, here you have it: IDictionary.cs
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900