Cannot convert lamda expression

Posted by Kirsty White on Stack Overflow See other posts from Stack Overflow or by Kirsty White
Published on 2012-04-12T17:25:54Z Indexed on 2012/04/12 17:28 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

If I try:

Groups = students.Remove(f => f.StudentID.Equals(studentID));

I get an error on this line: f => f.StudentID.Equals(studentID)

I am having difficulty from my previous posts here linq deleted users still associated with groups and here Delete method in WCF

So I thought maybe I could delete the students contained within groups but I get an error Cannot convert lamda expression to type Student because it is not a delegate type.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf