private 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); } } }
foreach (string s in excludedNames) { Console.WriteLine(s); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)