string[] candidates = new string[] {
"Luke_jedi", "Force_unknown",
"Vader_jedi" , "Emperor_human", "r2d2_robot"
};
string[] disregard = new string[] {"_robot", "_jedi"};
var nonJedi = candidates.Where(c=>
c.???
);
How would you implement this solution with LINQ to find all those that do not end with any of the neglect elements?
source
share