Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从索引 1 开始的 for 循环是一个明显的答案。我相信还有很多其他方法可以做到这一点。但是什么是最易读的方式?
问题是使用 C# 4.0。LINQ 是可选的。
怎么样
dataset.DataTables.Skip(1)
ds.Tables.OfType<DataTable>().Skip(1).ToList().ForEach(ACTION);