Solved

Need help c# into vb.net

Posted on 2011-03-13
4
190 Views
Last Modified: 2012-05-11
     _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
Comment
Question by:JSW21
4 Comments
 
LVL 23

Assisted Solution

by:Rajkumar Gs
Rajkumar Gs earned 167 total points
ID: 35122343
0
 
LVL 23

Accepted Solution

by:
wdosanjos earned 167 total points
ID: 35160923
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
 
LVL 8

Assisted Solution

by:databoks
databoks earned 166 total points
ID: 35389756
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
 

Author Closing Comment

by:JSW21
ID: 35514438
thank you !
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question