C# – Howto get started with C# 4.0 and .NET 4.0

.net-4.0cc#-4.0net

I don't want to download Visual Studio 2010.

  1. How can I start studying (not
    developing real applications) C# 4.0
    and .NET 4.0 with just a text
    editor?

  2. Can I just download C# 4.0 compiler
    and .NET 4.0 framework and get
    started? How?

I have got Visual Studio 2008 but I learn from SO questions that it can't do the job.

Best Answer

The C# compiler is part of the .NET Framework.

You can find it under C:\Windows\Microsoft.NET\Framework\your_version_number\csc.exe

So, just open a text editor, write your source code, and compile it with the command line compiler.