If I have an array with 12 elements and I want a new array with that drops the first and 12th elements. For example, if my array looks like this:
__ __ __ _
You can do this with Array.Copy or LINQ.
var letters = string[] { "a", "b", "c", "d", "e", "f", "g", "h", "i" }; int length = letters.Length - 2; var items = new string[length]; Array.Copy(letters, 1, items, 0, length); // or var items = letters.Skip(1).Take(length).ToArray();