在反射器中列出

mic*_*ver 3 .net c# reflector

MSDN 文档说List集合来自:

System.Collections.Generic.List

但是当我拉起.NET Reflector 6时,这就是我所看到的System.Collections.Generic:

BitHelper

我设置

链表

一个LinkedListNode

队列

SortedDictionary

...

但没有名单.

如果我右键单击System.Collections.Generic然后"搜索MSDN",它会列出所有通用类并包含List.

但是我没有看到List .Net Reflector.

我在哪里可以找到它?

Ree*_*sey 9

LinkedList<T>你提到的其他课程都在System.dll集会中. List<T>mscorlib.所有都在System.Collections.Generic命名空间中.

确保浏览到System.Collections.Generic命名空间部分mscorlib,而不是System.

您可以在MSDN的页面上List<T>的命名空间定义下看到:

命名空间:System.Collections.Generic

汇编:mscorlib(在mscorlib.dll中)

但是,LinkedList<T>例如,显示:

命名空间:System.Collections.Generic

程序集:系统(在System.dll中)

(请注意,您还可以在Reflector中搜索类型,这将使​​其正确找到...)