我有代码
Enumerable.Range(100, 100) .Select(x => x / 10)
有没有办法可以通过这条线.选择(x => x/10)到一个方法.目的是在选择发生时将结果传递给方法.我想在这里避免使用foreach.
c# linq
c# ×1
linq ×1