You need Main method. So, you need to do this:

public class
{
  [STAThread]
  public static void Main(string[] args)
  {
     //this is App 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
>
> _______________________________________________
> Mono-winforms-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>


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

Reply via email to