与缺少程序集参考有关的错误 [英] error related with missing assembly reference

查看:88
本文介绍了与缺少程序集参考有关的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

当我添加
[ToolboxItem(false)]
List< string>名称=新列表< string>();
Web服务中发生错误找不到类型或名称空间名称列表"(您是否缺少using指令或程序集引用?),为什么会出现此错误,因此必须添加哪个程序集

在此先感谢
Amrutha

Hi all

When i add
[ToolboxItem(false)]
List<string> names = new List<string>();
in webservice error occuring " The type or namespace name ''List'' could not be found (are you missing a using directive or an assembly reference?) why this error comes which assembly have to be added

Thanks in Advance
Amrutha

推荐答案

List<>驻留在
List<> resides in
System.Collection.Generic

命名空间.
您也可以使用简单的ArrayList.

namespace.
You can use simple ArrayList too.


这篇关于与缺少程序集参考有关的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆