I'm stuck on converting this C# code to VB:
AsyncHelpers.Async.Do(delegate { WriteStuff("additional stuff..."); });
I was thinking it would be something like
AsyncHelpers.Async.Do(Function() WriteStuff("additional stuff...")
but I get the error "Expression does not produce a value".
Can someone please give me the appropriate VB.Net translation?
Thanks.
========== UPDATE
.
.
.
Async.Do(New DlgR(AddressOf WriteStuff))
End Sub
Friend Shared Sub WriteStuff(ByVal thisStr As String)
'do stuff with thisStr
End Sub
Based on Brian's suggestion below, this still doesn't work.
How do I get the parameter passed to WriteStuff?
Lastly, I'm also getting signature compatibility error with delegate function DlgR() as object.