Answers for "how to run main in c#"

C#
2

c# main file

class TestClass
{
    static void Main(string[] args)
    {
        // Display the number of command line arguments.
        Console.WriteLine(args.Length);
    }
}
Posted by: Guest on April-16-2021
2

c# call main method

static void Main(string[] args)
{
	// Do something...
}

static void A()
{
	Main(null);
}
Posted by: Guest on August-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language