1 using System; 2 using System.Collections.Generic; 3 4 //用KVP来代替KeyValuePair;相当于C中的typedef 5 using KVP = System.Collections.Generic.KeyValuePa...
c#在准备使用System.Collections.Generic.KeyValuePair遍历的Hashtable时候,代码却提示有错误:
这其实是个非常简单的错误,Eclipse中通过工具弹出的提示解决方法,点下鼠标就能解决问题的,Visual Studio 2010却不行。不过提示也说的比较清楚了,需要指定两个参数的类型。
根据你的Hashtable中保存的Key和Value的数据类型...
分类:
其他好文 时间:
2015-04-27 08:17:15
阅读次数:
238