If you mean, can you create an array of 100 elements and set 5 of them in a line, something like:
int[] i = new int[100] { 1, 2, 3, 4, 5 };
Then no, you get a compiler error:
An array initializer of length 100 is expected.
However, you can initialize all the elements in the line:
int[] i = new int[] { 1, 2, 3, 4, 5 };
Or more complicated (the compiler can do it like this int[]):
var i = new[] { 1, 2, 3, 4, 5 };
, :
var i = new List<int> { 1, 2, 3, 4, 5 };
i.Add(6);
:
var iArray = i.ToArray();
, , , , .