Mono

Mono location:

 

/usr/local/bin/mono

 

 

Compiler:

 

/usr/local/bin/gmcs

 

 

Example :

 

using System;
 
public class HelloWorld
{
    static public void Main ()
    {
        Console.WriteLine ("UnixSSH.com!");
    }
 
}

 

Compile : gmcs test.cs

 

Run     : mono test.exe

 

 

Example GTK#(Windows and Unix):

 

using Gtk;
using System;
 
class Hello {
 
        static void Main()
        {
                Application.Init ();
 
                Window window = new Window ("UnixSSH.com!");
                window.Show();
    
                Application.Run ();
    
        }
}

 

Compile : gmcs test2.cs -pkg:gtk-sharp-2.0

 

Run     : mono test2.exe

 

Live Free Or Die!