JRFromSoCal
asked on
Lambda Expression to eval bool and then assign value to variable.
Just wondering if a lambda expression would be possible here.
Dim HasPostmarkDateVerified As String = "N"
If (PostmarkDateVerified = True) Then
HasPostmarkDateVerified = "Y"
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
A lambda doesn't make much sense here. I like nepaluz's approach more so.
ASKER
I thought nepaluz's solution was lambda?
Looks like a lambda, works like a lambda .... (I don't like ducks very much, but I know how one quacks!)
I guess functionally it is. When you say "lambda" in relation to .NET, I would expect something, for lack of a better example, like:
The part that makes me think "lamba" is the usage of the keyword "Function". I've just never give If much thought as to whether or not it's a lambda = )
testResult(4, Function(num) num Mod 2 = 0)
The part that makes me think "lamba" is the usage of the keyword "Function". I've just never give If much thought as to whether or not it's a lambda = )
ASKER
Thanks guys.