Hi guys,
How do you this in Linq? or a simple filtering method? My solution is doing foreach on the generic string list then inside that loop doing another foreach on the array list and try to check if the arraylist contains the string to search?
string[] myArray = {"The quick brown fox jumps","over the lazy dog"};
List<string> newList = new List<string>();
newList.add("over");
newlist.add("dog");
foreach (string x in myArray)
{
foreach (string s in newList)
{
if x.contains(s)
//add to another new list here...
}
}
I'm getting duplicates so I believe there is another solution out there?
Thanks
...
Go to the complete details ...