C#console private variable global code example
Example 1: how to make a global variable in c#
Make A New Class File And Add This
internal class Global
{
public static int32 Int1 = 1;
public static string Text1 = "Sample Text";
public static bool Bool1 = True;
}
Example 2: how to create public variable in c#
public static class Myvariables{
public static int x = 1;
}