I have a customer List and a string List where each string is like "blah;huhu";
I want to get all customers whose name is in the last part of the splitted "blah;huhu"
like c.Name == "huhu"
.
Thats my pseudo code:
String ID = 1000;
var query = customerListWithIdAndName.Where(
c => c.Name == stringListWith2SemicolonSeparatedStrings.Split().Last()
);
What would be the correct code that I can make a comparison on EACH splitted value?
UPDATE:
I want for every returned customer to assign a value: String ID = 1000; Thus every customer returned must have the id 1000.