My title question is a little vague, since it's hard to ask, but my situation is this:
I have an array of ints, which are indices into a separate collection of objects.
The array looks like this:
int[] indices = { 0, 2, 4, 9, 10, 11, 13, /* more (non-)sequential indices */ };
Each of these indices corresponds to an object at that index in a collection I have.
I want to be able to build a new collection of these objects using the indices in my array.
How would I do that using some LINQ functions?