C# is open source now and has been for a while. Same as .NET
Only proprietary bit is the debugger (vsdbg) but there are open alternatives.