Solved

Need help c# into vb.net

Posted on 2011-03-13
4
192 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

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