Was always possible to compile+run C# on Linux using the Mono project. Until Microsoft "bought them out" and created .NET Core, a cross platform version of .NET that MS now encourages people to use instead...
Microsoft's new linux compile tools rub me the wrong way slightly, with the telemetry that's opt-in by default.
Mono is still extremely valuable for older .NET Framework apps under WINE though, way easier to setup compared to the official installers from what i've experienced.
No idea how compiled C# compares to C...