On 3/29/06, Salvatore Scarciglia <[EMAIL PROTECTED]> wrote:
On Tue, 28 Mar 2006 22:15:22 -0500
"Carl Hume" <[EMAIL PROTECTED]> wrote:

 

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

Thanks for your help Salvatore.  hello.cs now looks like:

// Hello World! : hello.cs

using System;

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

Unfortunately, I still receive the same compile error:

# mcs hello.cs
hello.cs(3,13): error CS8025: Parsing error
Compilation failed: 1 error(s), 0 warnings

Any thoughts?

Cheers!
Carl

--
http://genomescampaigns.blogspot.com
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to