ListViewItem lvi = new ListViewItem(textBox1.Text); listView1.Items.Add(lvi); ListViewItem lv = new ListViewItem(textBox2.Text); listView2.Items.Add(lv); //im doing somthing wrong here... var nonintersect = listView1.Except(listView2).Union(listView2.Except(listView1)); //populate listview3 with the unique numbers... // foreach (item ) // { // }
var nonintersect = listView1.Items.Except(listView2).Union(listView2.Items.Except(listView1));
listView3.Items.AddRange(nonintersect.Select(x=>(ListViewItem)x.Clone()).ToArray());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)