擅长:python、mysql、java
<p>如果您使用的是C#3.0(VS2008),那么LINQ to Objects可以执行非常类似的操作:</p>
<pre><code>List<Foo> fooList = new List<Foo>();
IEnumerable<Foo> extract = from foo in fooList where foo.Bar > 10 select Foo.Name.ToUpper();
</code></pre>