c# - How to use Parallel.ForEach with dataTable -


this question has answer here:

how can use parallel.foreach datatable works fine list , array cant working datatable shows error "cannot inferred usage. try specifying type arguments explicitly"

 parallel.foreach(dt.rows , row=>                 {                   //code here                    });  

the answer need cast row asenumerable() extension method:

 parallel.foreach(dt.rows.asenumerable() , row=>             {               //code here                });  

Comments

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -