Sebastian K
0
Q:

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;
    }
2
public static class Myvariables{

    public static int x = 1;

}
0

New to Communities?

Join the community