I have a list in C#
and the search code is currently like this:
filter = lst.Where(s => s.Contains(num.Text) ).Take(3).ToList();
The lst
list is based on a list of phone numbers and contact names, for example:
123456789$nome1
987654321$nome2
I'm currently searching for the number, I wanted to do an OR so I could search for the example name as well:
num.Text = 9;
nome.Text = "l";
I wanted to get the first 3 items in the list that have the value of nome.Text
OR num.Text