DataTable.Select vs DataTable.rows.Find vs foreach vs Find(Predicate)/Lambda

前端 未结 5 910
情深已故
情深已故 2020-12-25 15:20

I have a DataTable/collection that is cached in memory, I want to use this as a source to generate results for an auto complete textbox (using AJAX of course). I am evaluati

5条回答
  •  春和景丽
    2020-12-25 15:38

    as per the following blog

    http://blog.dotnetspeech.net/archive/2008/08/26/performance----datatable.select-vs-dictionary.aspx

    DataTable.Rows.Find is much, much faster than DataTable.Select.

提交回复
热议问题