c#中是否有linq函数,可以从特定范围的索引中收集IEnumebles?
一个例子是
var objectArray = new string[] { "Bill", "Bob", "Joe", "Phil", "Tom", "Paul" };
var indexArray = new int[] { 1, 3, 5 };
var list = objectArray.Where(SOME_FUNCTION_TO_GET_INDEXES ??).ToList();
//output would be list:
//Bob
//Phil
//Paul
Run Code Online (Sandbox Code Playgroud)