在C#中需要字典对象的确切逻辑 [英] Need exact logic for dictionary object in C#
本文介绍了在C#中需要字典对象的确切逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
样本输入数据
Sample Input data
http:\\localhost\a1.aspx a1
a4
a5
http:\\localhost\a2.aspx a1
a5
http:\\localhost\a3.aspx a4
将转换为Final o/p
Would be transform to Final o/p
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
Dictionary<Uri, string[]> d1 = new Dictionary<Uri, string[]>();
输出对象
Output Object
Dictionary<string, Uri[]> d2 = new Dictionary<string, Uri[]>();
请帮助我,需要逻辑...
please help me out, need logic ...
推荐答案
如果您需要IDictionary的逻辑,则需要查看其源代码.好的,您已经在这里: IDictionary.cs
If you need the logic of IDictionary, you need to look at it''s source code. Well, here you have it: IDictionary.cs
这篇关于在C#中需要字典对象的确切逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文