Gaby Paz
25
Q:

c# append array

List<string> ls = new List<string>();
ls.Add("Hello");
1
var Freds = new [] { "Fred", "Freddy" };
Freds = Freds.Concat(new [] { "Frederick" }).ToArray();
4
List<int> termsList = new List<int>();
for (int runs = 0; runs < 400; runs++)
{
    termsList.Add(value);
}

// You can convert it back to an array if you would like to
int[] terms = termsList.ToArray();
1
List<int> add_list= new List<int>();
for (int i = 0; i < 400; i++)
{
   add_list.Add(value);
}
0
int[] terms;

for(int runs = 0; runs < 400; runs++)
{
    terms[] = runs;
}
0

New to Communities?

Join the community