I have a structure like this:
struct Test { string name; string family; public Test... }
in my code I have a list of this structure:
List<Test> testList=new List<Test>();
I have a linq expression like this:
var list =testList.Select(n=>n.Name);
but how can I filter this selection by test list family? something like that:
var list=testList.Select(n=>n.Name).Where(f=>f.Family=="");
this Where clause only applies to selected names that are a list of strings
Any ideas how to do this?
source share