I have a custom MyType type with a function MyBoolFunction(string) that returns true or false.
I have a large list of MyType objects MyTypeList .
I have a list of string objects StringList .
I would like to get a subset of MyTypeList , where myTypeList.MyBoolFunction(arg) true for at least one arg value as arg runs through the StringList .
I think I should do this using C # lambda expressions.
I represent something like this (pseudo code)
MyTypeList.Where(x => (x.MyBoolFunction(arg)==true for some arg in StringList);
Is it possible? How can i do this?
source share