I have list of string of unique keys
var uniqueKeys = new List<string> {"01", "04", "09", "26", "27"};
I am trying to filter another list based on these unique keys.
Data in the list can be seen like this :
To From
01 05
01 02
09 04
01 09
01 45
04 06
27 12
I want to select data from this list in a way that both "To" and "From" property values lies in uniqueKeys
Desired Result should be :
To From
09 04
01 09
I have been through many posts over internet an I am not able to write the logic in simple LINQ format.
If someone has faced this problem please help me.