You don’t need Visual Studio to compile C# source code. Although VS is largely available I find it interesting to know how you can compile a simple source file to an executable file without it.
All you need is a text editor and a C# compiler. Luckily, both ships with Windows 10.
The compiler csc.exe is located:
Following an example (assuming you have added this location to your Windows PATH environment variable):
csc /t:exe EuroDollar.cs
would produce EuroDollar.exe in a snap.
Following the code of EuroDollar.cs