The = operator pulls double duty for both assignment and equality in VB.Net. Is it possible it's being interpreted incorrectly as assignment here? Try this instead:
Dim count As Func(Of Integer, Boolean) = Function(x As Integer) Return x = 1
Joel Coehoorn
2009-01-27 21:57:13