Hello guys I'm new to C# programming. I'd like to know what's the equivalent of this Java static to C#?

class NMM 
{
public static void main(String []args)
{
System.out.println("java");
}


static 
{
System.out.println("great");
NMM.main(null);
System.out.println("programmer");
System.exit(0);

}

}

Any help would be appreciated.

I changed to

static NMN(){ 
Console.Write("great"); 
NMN.Main(null);
Console.Write("programmer");

}

but it didn't display the programmer text.

this one:

class Program
    {
        static void Main(string[] args)
        {
            Console.Write("java");
        }

        static Program() 
        {
            Console.Write("great ");
            Program.Main(null);
            Console.Write(" programmer");
        }
    }

Edited 4 Years Ago by bettybarnes

hey friend I got it already I put the ReadLine() after Console.Write(" programmer");

Edited 4 Years Ago by bettybarnes

This question has already been answered. Start a new discussion instead.