why to use static method in c# code example
Example 1: c# static meaning
In general, static means “associated with the class, not an instance”.
// Search c# static review for more detail
Example 2: static methods c#
class Program
{
public static void withoutObj()
{
Console.WriteLine("Hello");
}
static void Main()
{
Program. withoutObj();
Console.ReadKey();
}
}