Solved

Need help c# into vb.net

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now