Hi, sorry for my English. So, here is my question I'm trying to update DataTable by PLINQ Here is my code
DataTable table = new DataTable();
table.Columns.Add(new DataColumn("val", typeof(decimal)));
int N = 1000000;
for (int i = 0; i < N; i++) table.Rows.Add(new object[] { i });
table.AsEnumerable().AsParallel().ForAll(row => row["val"] = 3);
But there is exception:"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
Please, help me