[QUOTE=DimPrawn;458471]Okay, I'm interested. What's the following snippet in VB.NET?
I'm no VB.net expert but wouldn't the first one be something like...
I though you could do lambda expressions as callable delegates in VB.net now - or am I wrong?
Code:
Func<int, bool> myFunc = x => x == 5; bool result = myFunc(4); // returns false of course
Code:
Dim myFunc As Func(Of Integer, Bool) = function(x) x == 5 Dim bool = myFunc(4) 'returns false
Comment