Microsoft has released to source code for the .NET runtime (well, not the commercial, but close enough) and the C# compiler and some other stuff.