[Mono-list] Getting Started

Salvatore Scarciglia s.scarciglia at hyperphar.com
Wed Mar 29 01:13:18 EST 2006


On Tue, 28 Mar 2006 22:15:22 -0500
"Carl Hume" <carl.hume at gmail.com> wrote:

> using System;
> 
> class Hello {
>         static Main() {
>                 Console.writeln( "Hello, World!" );
>         }
> }

Hi,
this is the right one:

using System;

class Hello {
        public static void Main() {
                Console.WriteLine( "Hello, World!" );
        }
}

First of all: Main method must return a valid type (void); then the
method writeln is not present inside the Console class

Bye


Salvatore ---------------------<|
LAAS --------------------------<|
http://laas.altervista.org ----<|


More information about the Mono-list mailing list