I have two string lists.
1:
new List<string>{ "jan", "feb", "nov" }
2:
new List<string>{ "these are the months", "this is jan,", "this is feb,", "this is mar,", "this is jun,", "this is nov"}
I'd like my result to be:
List<string>{ "these are the months", "this is jan,", "this is feb,", "this is nov"}
right now I'm doing a messy split, then a contains linq with a nested foreach.
But there has to be a simpler way, I've thought of a linq left JOIN with list 2 on the left, perhaps, but wouldn't know how to pull it off, if that's even the correct approach.
Any ideas?
Thanks.