The MSDN docs say List collections derive from:
System.Collections.Generic.List
But when I pull up .NET Reflector 6 this is what I see in System.Collections.Generic
:
BitHelper
ISet
LinkedList
LinkedListNode
Queue
SortedDictionary
...
But no List.
If I right-click on System.Collections.Generic
and then on "Search MSDN" it lists all of the generic classes and includes List.
But I don't see List in .Net Reflector.
Where can I find it?
LinkedList<T>
and the other classes you mention are in the System.dll
assembly. List<T>
is in mscorlib
. All are in the System.Collections.Generic
namespace.
Make sure to browse to the System.Collections.Generic
namespace section within mscorlib
, not System
.
You can see this on MSDN's page for List<T>
right under the namespace definition:
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
However, LinkedList<T>
, for example, shows:
Namespace: System.Collections.Generic
Assembly: System (in System.dll)
(Note that you can also search for the type in Reflector, which will cause it to be found correctly...)