i'm new to linq, what i want is to do group by with having like in tqsl. my class:
class test{
public int field1;
public int field2;
public int field3;
}
now i have:
IEnumerable<test> list;
i want something like:
IEnumerable<test> q=
from p
in list
group p by p.field1
having p.field2==p.field2.Max()
select p;
Can u help me?