B
Bill
This generates a compile error:
private void BuildFTPRec(DataRowView a)
{
foreach (DataColumn dc in a)
{
Console.WriteLine(r.ToString());
}
}
The error is as follows:
"foreach statement cannot operate on variables of type
'System.Data.DataRowView' because 'System.Data.DataRowView' does not contain
a definition for 'GetEnumerator', or it is inaccessible"
private void BuildFTPRec(DataRowView a)
{
foreach (DataColumn dc in a)
{
Console.WriteLine(r.ToString());
}
}
The error is as follows:
"foreach statement cannot operate on variables of type
'System.Data.DataRowView' because 'System.Data.DataRowView' does not contain
a definition for 'GetEnumerator', or it is inaccessible"