public and static in C# code example
Example: c# public static string
public static string saytest = "test";
private static void Main()
{
Console.WriteLine(saytest);
}
public static string saytest = "test";
private static void Main()
{
Console.WriteLine(saytest);
}