Why doesn't this work ?:
I'll get te following error:
With Int32.Parse(dr[0].ToString):
Methode for Int32.pars has some invalid arguments
dr[0].ToString : Argument cannot convert from 'method group' to 'string'
Whats wrong ?
C#:
foreach (DataRow dr in dataTable.Rows)
{
//Nieuwe class vullen
cust[cust.Length + 1] = new Class_customers(Int32.Parse(dr[0].ToString), dr[1].ToString, dr[2], dr[3],
I'll get te following error:
With Int32.Parse(dr[0].ToString):
Methode for Int32.pars has some invalid arguments
dr[0].ToString : Argument cannot convert from 'method group' to 'string'
Whats wrong ?
Last edited by a moderator: