//Below linq query concat all the selected item string required =listBox1.SelectedItems.Cast<string>().Aggregate((a, b)=>a+b); //Below linq query concat all the distinct selected item string required =listBox1.SelectedItems.Cast<string>().Distinct().Aggregate((a, b)=>a+b);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)