Example
- Download and install Xamarin Studio Community.
- Open Xamarin Studio.
- Click File → New → Solution.
- Click .NET → Console Project and choose C#.
- Click Next to proceed.
- Enter the Project Name and Browse... for a Location to Save and then click Create.
- The newly created project will look similar to:
- 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();
}
}
}
- To run the code, press F5 or click the Play Button as shown below:
- Following is the Output: