Hi, I think result List should contain matches from each column?
If you're using C#, probably should have no problems using Linq
public List<string> SearchList(List<string> Source, List<string> SearchWords){
List<string> results = Source.Where(x => SearchWords.Contains(x)).ToList();
return results;
}
Regarding SearchObject, what is the use of passing List<my_object> Source when it seems you need only 1 my_object?
You can use the Linq query for the 4 lists in my_object.
my_object data = new my_objec();
List<my_object> entries = new List<my_object>();
So then
entries.column1 = SearchList(data.column1, SearchWords);