I couldn\'t find any information pertaining to this question. I am trying to create a global array in C# so that I can input information into it at different points in my co
Well, aside from the fact that you likely have a structural problem if you're storing stuff globally.
You can use a static property for this.
public class MyVariables
{
private static string[] _MyStuff
public static string[] MyStuff
{
return _MyStuff;
}
}
Then access it like this:
MyVariables.MyStuff[0]