Need help c# into vb.net

     _socketClient.OnException += (client, exception, okToContinue) =>
                                     {
                                       _loger.Log("[SingleClient] Exception " + exception);
                                       if (false != okToContinue) return;

                                       _socketClient.Dispose();
                                       _socketClient = null;
                                     };
I got to here

then stuck

AddHandler _client.OnException, ...

JSW21Asked:
Who is Participating?
 
wdosanjosConnect With a Mentor Commented:
On .NET 4, it should be something like this:

AddHandler _client.OnException, Sub (client, exception, okToContinue)
                                   _loger.Log("[SingleClient] Exception " & exception)
                                   If false <> okToContinue Then
                                   	Return
                                   End If

                                   _socketClient.Dispose()
                                   _socketClient = Nothing
                                End Sub

Open in new window

0
 
Rajkumar GsConnect With a Mentor Software EngineerCommented:
0
 
databoksConnect With a Mentor Commented:
try this one:

http://www.developerfusion.com/tools/convert/csharp-to-vb/

it is a only converter tool. Just paste the code and bang !
0
 
JSW21Author Commented:
thank you !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.