Create a method named MyMethod
and call it inside Main()
.
static void @(8)()
{
Console.WriteLine("I just got executed!");
}
static void Main(string[] args)
{
@(11)
}
static void MyMethod()
{
Console.WriteLine("I just got executed!");
}
static void Main(string[] args)
{
MyMethod();
}