Select 有人能用';选择';扩展方法?

Select 有人能用';选择';扩展方法?,select,Select,有人能用“选择”扩展方法转换下面的代码吗 // int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; string[] strings = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; var textNums = from n in numbers select strings[n]; 堆栈溢出不

有人能用“选择”扩展方法转换下面的代码吗

 //  
 int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; 
 string[] strings = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
 var textNums = 
 from n in numbers 
     select strings[n]; 

堆栈溢出不是代码转换服务。您应该修复格式并添加c#标记
var textNums = numbers.Select(n => strings[n]);