Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 test.aspx.cs 文件,我在代码中使用了 HashTable。但是,编译器总是抱怨找不到它的命名空间。我已经添加了 System.Collections; 命名空间,但它仍然显示相同的错误!问题是什么??
只是一个猜测,但您很可能会像这样实例化哈希表:
HashTable table = new HashTable();
将其更改为:
Hashtable table = new Hashtable();