Alex Rivera | Logout

How is it that the Mono sources are mostly C#?

Asked 2011-11-07T01:45:01.793
10

I just looked at the source of Mono for the first time and I thought I would find a bunch of C or C++ code, instead I found 26,192 .cs files and 7 .cpp files.

I am not totally shocked but it made me think of a quesiton I've always had in the back of my mind:

How does a project end up being written in "itself" like this?

Was an older version of mono more c/c++? Or was there initial effort to create some kind of machine coded compiler...

What's the "trick" here?

Edit
Report

1 Answer

2

You should be looking for .c files, instead of .cpp files: the mono runtime is written in C, not C++.

answered 2011-11-07T07:51:05.807

Your Answer