Csharp

C# (Csharp)looks like Microsoft and Windows, but it is an openly documented language that runs also on other operating systems as on Linux and Mac using mono: http://www.mono-project.com/Main_Page/

The specifications are available for free via ECMA or not for free via IEC http://www.mono-project.com/ECMA/.

The following example is a hello wold program. It is a source file with cs extension and looks as:

using System;
class Hello
{
  static void Main() {
    Console.WriteLine("hello, world");
  }
}

To run it emerge mono or to get a IDE emerge monodevelop from http://www.monodevelop.com/. Using the command line compiler type mcs hello.cs (mcs is an open source version of csc, the cs compiler) to get the hello.exe that can be run under Linux typing mono hello.exe. It can be compiled into a runnable binary: csc hello.cs. As mono under Linux, the .NET framework needs to be installed under Windows.


Linurs Servernest startpage