I am bit confused what is the meaning of below statements.
List<Func<GroupInfoInfo, bool>>()
Groups.Instance.GetGroup(2, grp => TestPredicateGroup(whereCls, grp));
private static bool TestPredicateGroup(List<Func<GroupInfoInfo, bool>> predicates, GroupInfoInfo ri)
{
foreach (var p in predicates)
{
if (!p(ri))
{
return false;
}
}
return true;
}
I want to know what is the meaning of List<Func<GroupInfoInfo, bool>>()
and statement of if (!p(ri))
in function?
Some confusion in GetGroup()
lambda expression also.