Skip to content

Where is the List<T> implementation? #41564

Discussion options

You must be logged in to vote

You are looking at the reference assembly for System.Collections. The reference assembly lives under the ref directory and does not actually provide any code for the classes. The source for the implementation assembly, which will actually contain the code, lives under the src directory. You can read more about what reference assemblies are used for in the documentation.

Even though List<T> is defined in the reference assembly for System.Collections, it does not actually live in the implementation assembly for System.Collections. It actually lives in System.Private.CoreLib, which is the "root assembly" where types like System.Object are defined. You can find the file for List at \src\libra…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ericstj
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants