[Mono-list] Getting Started
Carl Hume
carl.hume at gmail.com
Wed Mar 29 06:35:00 EST 2006
On 3/29/06, Salvatore Scarciglia <s.scarciglia at hyperphar.com> wrote:
>
> On Tue, 28 Mar 2006 22:15:22 -0500
> "Carl Hume" <carl.hume at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060329/a722fdc1/attachment.html
More information about the Mono-list
mailing list