After you have successfully installed the .NET SDK and chosen a suitable editor you are ready to write and run your C# programs. This can be accomplished by performing the following seven steps (shown here by using pseudocode):
Open the command console.
Use the chosen text editor to type and edit the C# source code and save this text as a .cs file.
Use the C# language compiler to turn this source code into a PE (.exe) or DLL (.dll) file.
If the compiler detects any syntax errors in step 3, go back to step 2 and correct these errors. Continue through steps 3, 4, and so on.
Run the program.
Verify that the output matches your expectations. If this is not the case, go back to ...