c# add a number to an array using for code example
Example 1: c# add to array
var Freds = new [] { "Fred", "Freddy" };
Freds = Freds.Concat(new [] { "Frederick" }).ToArray();
Example 2: c# int array add number
arr[index] = value;
var Freds = new [] { "Fred", "Freddy" };
Freds = Freds.Concat(new [] { "Frederick" }).ToArray();
arr[index] = value;