我有个函数里用了这么一句:
System.Collections.Generic.List<T>.Enumerator<MobileMessage> enumerator1 = this.mList.GetEnumerator ();
编译时说“找不到类型或命名空间名称“T”(是否缺少using指令或程序集引用?)”
第二个错误说:非泛型 类型“System.Collections.Generic.List<T>.Enumerator”不能与类型参数一起使用但我找了,发现System.Collections.Generic里是有list<T>的哦,这个问题怎么解决了?在线等,多谢各位高手帮忙了
System.Collections.Generic.List<T>.Enumerator<MobileMessage> enumerator1 = this.mList.GetEnumerator ();
编译时说“找不到类型或命名空间名称“T”(是否缺少using指令或程序集引用?)”
第二个错误说:非泛型 类型“System.Collections.Generic.List<T>.Enumerator”不能与类型参数一起使用但我找了,发现System.Collections.Generic里是有list<T>的哦,这个问题怎么解决了?在线等,多谢各位高手帮忙了
解决方案 »
- 有没有关于vs2010中报表编程和reportviewer控件的资料?
- 各位大虾小虾,有个问题急于请教你们!关于.net下用C#判断概率分布的问题,希望给点技术方面的指导~谢谢
- 类的继承、实例化的过程及内存分配?
- 如何合并dataGridView标题行 winForm
- 查询,如何吧SQL传给之前创建的表,在DataGridView中按SQL显示数据,在线........
- 请问语法问题
- 关于新东方背单词---测试游戏部分实现原理
- 跪求基于modbus/tcp协议监控系统相关资料
- delegate的具体含义?
- C#送分小问题。
- 80分求一个简单三层登录源码!
- winform listbox 怎么树形显示
System.Collections.Generic.List<T>.Enumerator<MobileMessage>
改成
System.Collections.Generic.List<T>.Enumerator
List<一个类名>
先
using System.Collections.Generic;然后
IEnumerator<MobileMessage> mm=.....