1. Download and install Xamarin Studio Community.
  2. Open Xamarin Studio.
  3. Click FileNewSolution.

  1. Click .NETConsole Project and choose C#.
  2. Click Next to proceed.

  1. Enter the Project Name and Browse… for a Location to Save and then click Create.

  1. The newly created project will look similar to:

  1. This is the code in the Text Editor:
using System;

namespace FirstCsharp
{
    public class MainClass
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Console.ReadLine();
        }
    }
}
  1. To run the code, press F5 or click the Play Button as shown below:

  1. Following is the Output: