简体   繁体   中英

Where can I find the definitions of System.Collections.Concurrent classes in the mono source code?

I am looking for the source code of the System.Collections.Concurrent classes, especially ConcurrentQueue and ConcurrentDictionary in the mono sources. I am unable to find them.

I was looking in the corlib Directory:

https://github.com/mono/mono/tree/master/mcs/class/corlib

but it does not contain the System.Collections.Concurrent package. Even using the repository search feature of github did not yield the source code.

There was already a question which asked a similar thing, but the links provided in the answer are dead. So where are the collection sources in the repository?

Mono from version 4.0 started to include source code that Microsoft opened sourced as reference source .

The last version of Mono that included its own version of the concurrent classes code was Mono 3.12 and that has the ConcurrentQueue and ConcurrentDictionary classes .

For later versions of Mono the source code for the System.Collections.Concurrent namespace is in the mono/referencesource GitHub repository, which is a fork of Microsoft's reference source repository .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM