= new DataView(sometable)有相当多的文章说Datatable.Select()比使用DataViews更好,但这些文章是在VS2008之前的。通过谷歌搜索这个主题,我发现一些文章/论坛主题提到了Datatable.Select()本身是相当错误的(不确定这一点),并且在各种情况下表现不佳。关于msdn上的这个()主题,建议如果数据表上定义了主键,则应该使用Data
System.Collections.Generic.List<T>.Find() customers.Find(c => c.Namewatch.Stop();
Console.WriteLine("Diana was found in {0} ms with System.Collections.Generic.List<T>.Find()", watch.Elapsed