src for System.Collections.Generic.List<T> #98773
-
Looking in runtime/src/libraries/System.Collections/src/System/Collections I do not see list.cs. The question I'm trying to answer is whether the constructor that takes an Can someone tell me where I can find it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A large number of types exist as part of In general you can use https://source.dot.net to locate types and then click the The Web Access link at the bottom of the page then goes to https://github.com/dotnet/runtime/blob/8cc7586135856499ea5123bbfb71a5df3fa7f717/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs The latest version of this file (which currently happens to be the same) is https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs |
Beta Was this translation helpful? Give feedback.
A large number of types exist as part of
System.Private.Corelib
for layering reasons and so do not live in same place as the reference assembly that exposes it publicly.In general you can use https://source.dot.net to locate types and then click the
Web Access
link to find the specific version of the file that had been indexed. For example,List<T>
is https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs,cf7f4095e4de7646The Web Access link at the bottom of the page then goes to https://github.com/dotnet/runtime/blob/8cc7586135856499ea5123bbfb71a5df3fa7f717/src/libraries/System.Private.CoreLib/src/System/Collections/Gen…