static method can access only static variables 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: c# public static string
public static string saytest = "test";
private static void Main()
{
Console.WriteLine(saytest);
}