Declaring and Using Global Arrays c#

前端 未结 8 2085
星月不相逢
星月不相逢 2020-12-30 12:02

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

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 12:35

    string[] values;
    

    Or to declare one of a particular length:

    string[] values = new string[6]; // creates an array with a length of 6.
    

提交回复
热议问题