[Mono-winforms-list] Does not contain a static Main method suitablefor an entry point
Peter Dennis Bartok
Peter at novonyx.com
Thu Aug 17 07:35:20 EDT 2006
Your program needs a static method called 'Main'. That's where execution
will begin. You don't have that, you're is called M.
Peter
-----Original Message-----
From: "Hans Poulsen" <hap at solar.dk>
To: <mono-winforms-list at lists.ximian.com>
Date: Thursday, August 17, 2006 02:59
Subject: [Mono-winforms-list] Does not contain a static Main method
suitablefor an entry point
>Hi everybody
>
>I keep getting this error every time I want to compile a class that is
>intended to be an object. I'm running Mono on a windows XP machine, is it a
>missing compiler parameter, or can anybody tell me what courses this
>problem?
>
>public static class TST
>{
> public static int num;
>
> public static void M()
> {
> num = 5;
> }
>
>
>}
>
>
>Best regards
>Rytme
>
>
More information about the Mono-winforms-list
mailing list