- The C# language specification is publicly available, but Copyright of Microsoft.
- The Roslyn compiler is licensed under Apache 2.0, so that's open source.
Could I bootstrap it given all the code that Microsoft has released?
Yes. The Roslyn compiler has been written in C# and is able to compile itself.
So, that pretty much covers the language itself. The spec is Microsoft copyright, but the ECMA officiates the spec. Microsoft's compiler implementation for that spec is open source.
Bonus round, because I have a feeling this is what you really want to know. What about the runtime and standard library? Are those open source?
Well, some of it is. Particularly, .NET Core is.
- CoreCLR (Common Language Runtime) is licensed under MIT.
- So is the standard library, CoreFx.
However, as far as I know, the Windows (desktop/classic) runtime and framework are still closed source. I suspect this is because they're tightly tied to the operating system itself. This also means that Winforms, WPF, & UWP (the desktop UI frameworks) are closed. However, much of the .NET framework is source available.
Über bonus round: There are several other open source Microsoft projects listed under The .NET Foundation.
Oh, and don't forget F#, it's libre too. All in all, Microsoft has done a wonderful job of opening its stack and inviting the community to contribute over the last few years. Despite a few missteps along the way.
Update 2020:
WPF is now open source
https://github.com/dotnet/wpf
And so is WinForms
https://github.com/dotnet/winforms