I have a function that takes an array of integers(roles) and returns a
set of objects that contain one or more of the roles within a child
collection:
public Users[] GetUsersByRoles(int[] Roles)
{
}
public class Users
{
public int[] roles;
public string blah;
...
}
If I pass 2,4,6 then I would return any users that has at least one of
the elements.
Is there any way that Linq to Objects can do the heavy lifting for
me? I would rather not have to loop through each user and query their
roles.
Thanks,
Brian