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

646 views Asked by At

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?

1

There are 1 answers

0
Matt Ward On BEST ANSWER

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.