I have done some searching, but haven't found much. At the moment I am using:
class GlobalArrays
{
public static string[] words = { "Easy", "Medium", "Hard" };
public static Color[] backColors = { Color.LightGreen, Color.Orange, Color.Red };
}
Which works well, but I don't know if it is the correct way to do it. I've seen global variables done like this:
static class GlobalVars
{
const string SOMETHING = "LOL";
}
Which is supposedly the Microsoft approved way of declaring namespace level constants, but when I tried that with arrays, it threw an error, saying they could only be of type string.
static class GlobalArrays
{
public const string[] words = { "Easy", "Medium", "Hard" };
public const Color[] backColors = { Color.LightGreen, Color.Orange, Color.Red };
}
The above code won't compile, and says they can only be initialized with null, because they are of a type that is not string.