Closed Yxa2111 closed 3 years ago
稍微用了一下,感觉很多场合都需要map把一个序列变成另一个序列,如果没有的话就需要中途to_list()然后再调用map然后再构造新的Enumerable。不太了解linq,没有map是因为设计相关的问题吗?
原来是select(),那没事了
稍微用了一下,感觉很多场合都需要map把一个序列变成另一个序列,如果没有的话就需要中途to_list()然后再调用map然后再构造新的Enumerable。不太了解linq,没有map是因为设计相关的问题吗?