Hi, I'm looking for source code of the Generic List
There are test cases but the code itself is not present in the folder mentioned above.
List
https://github.com/dotnet/coreclr/blob/master/src/mscorlib/src/System/Collections/Generic/List.cs
@mellinoe Thank you!
While technically this isn't an issue, the response provided is no longer correct. It has been moved here: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/shared/System/Collections/Generic/List.cs
edit: Actually, there is a new link here https://github.com/dotnet/coreclr/blob/master/src/System.Private.CoreLib/shared/System/Collections/Generic/List.cs
In general, just press T while on the repo's home page and type List.cs. If it doesn't appear in the search results, try it at the other repo's home page.
@jnm2 didn't know that useful one, thanks for sharing!
New thing I learned last week: go to http://source.dot.net, type List<, click the top entry, then click the 'Web聽Access' link in the bottom right corner.
Ah! kewwl!
BTW, I have source.dot.net as a Chrome search engine, so I just type so in the address bar, and hit Tab to search.
Both links provided in the answers are broken.
I believe this is the new link @Mirandatz : https://github.com/dotnet/coreclr/blob/master/src/System.Private.CoreLib/shared/System/Collections/Generic/List.cs
Thank you very much.
Most helpful comment
While technically this isn't an issue, the response provided is no longer correct. It has been moved here: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/shared/System/Collections/Generic/List.cs
edit: Actually, there is a new link here https://github.com/dotnet/coreclr/blob/master/src/System.Private.CoreLib/shared/System/Collections/Generic/List.cs