Where to write C# code?

  • C# code is written by using text editor.
  • This text editor can be Notepad or Integrated Development Environment (Visual Studio 2010).
  • Using IDE is assumed to be a good practice than using the Notepad for writing the C# code.
  • Below we are giving the samples for C# code written in Notepad and Visual Studio 2010 IDE:
    • Sample of C# code written in Notepad:
    • csharp-code

    • Sample of C# code written in Visual Studio 2010 IDE:
    • csharp-code