I have an array for example :
public static string[] elmentnames = { "A", "B", "C", "D", "E","F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R","S", "T", "U", "V", "W", "X", "Y", "Z"};
and I want to select items from index 0 to 15 and put then in a list of string
How?
Presuming the elements are already in the order you want them, you can do it like:
.Take(15)is the first 15 elements. From index 0 to 15 is actually 16 elements, so you can change that to.Take(16)if that’s what you meant.