I have a string[] and want to get the string[] elements with the index that I know about, specified in int[] .
string[] stringArray = { "a", "b", "c", "d", "e", "f", "g" }; int[] indices = { 1, 2, 4, 6 };
From this I am trying to get a string[] containing { "b", "c", "e", "g" } . It is preferable to use a lambda expression. How can I do it?
sshow source share