I want to Display results of the list .Is it possible to display the list in console (program is windows form)as list excludedNames has many values. Which is the best way to display the result.?.
Collapse |
Copy Codeprivate void bt_compare_Click(
object sender, EventArgs e)
{
table1 = GetDataTabletFromCSVFile(tbCSVPath.Text);
table2 = GetDataTabletFromCSVFile1(tbCSVPath1.Text);
List<
string> excludedNames =
new List<
string>();
for (
int i =
0; i < table1.Rows.Count; i++)
{
string col = table1.Rows[i][
"Par Name"].ToString();
if (!table2.Columns.Contains(col))
{
excludedNames.Add(col);
}
}
}