I have a LINQ query like this:
var getOnlyMP = from mpPoint in cmList where
mpPoint.Component.Contains("asd") ||
mpPoint.Component.Contains("dsa") ||
mpPoint.Component.Contains("123") ||
mpPoint.Component.Contains("456")
select new MP
{
MPName = mpPoint.Component,
X = mpPoint.PlaceX,
Y = mpPoint.PlaceY,
};
I want to store "asd", "dsa", "123", "456" in an array, so is there a possibility to loop through on that array and make the comparing in all items after the WHERE clause dynamically?