Find items in a string collection which contain another string [closed]

Use AddRange Method with Where

listbox1.Items.AddRange(collection.Where(x => x.Contains(textBox1.Text));

Browse More Popular Posts

Leave a Comment