码迷,mamicode.com
首页 >  
搜索关键字:keyvaluepa    ( 2个结果
linq to xml(C#)
1 using System; 2 using System.Collections.Generic; 3 4 //用KVP来代替KeyValuePair;相当于C中的typedef 5 using KVP = System.Collections.Generic.KeyValuePa...
分类:Windows程序   时间:2015-05-01 11:53:29    阅读次数:177
使用泛型 类型System.Collections.Generic.KeyValuePair需要2个类型参数
c#在准备使用System.Collections.Generic.KeyValuePair遍历的Hashtable时候,代码却提示有错误: 这其实是个非常简单的错误,Eclipse中通过工具弹出的提示解决方法,点下鼠标就能解决问题的,Visual Studio 2010却不行。不过提示也说的比较清楚了,需要指定两个参数的类型。 根据你的Hashtable中保存的Key和Value的数据类型...
分类:其他好文   时间:2015-04-27 08:17:15    阅读次数:238
2条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!