• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

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, ...

0
JSW21
Asked:
JSW21
3 Solutions
 
Rajkumar GsSoftware EngineerCommented:
0
 
wdosanjosCommented:
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
 
databoksCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now