Perhaps even access to the csc.exe source code will help you. (It is very important.)
Judging by your comments, this is really the bit you really need. (Attempting to change int and string will involve changing mscorlib and almost certainly CLR. Ouch.)
Fortunately, you're in luck: Microsoft has the open-source Roslyn , the next-generation C # compiler that will ship with Visual Studio 2015.
If you want to change the behavior of the compiler, you can unlock it and change it accordingly. If you just need to get an abstract syntax tree (and the like), then you can do it without changing the compiler at all - Roslyn is a design that is the βcompiler APIβ, and not just a black box that takes the source of the code and spits out IL. (As a sign of how rich the API is, Visual Studio 2015 uses a public API for everything - Intellisense, refactoring, etc.)
source share