Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert code from VB into C#

Tags:

c#

vb.net

I have problem to convert this VB code into C#

Public Event SendNewBid As EventHandler(Of BidEventInfo)

BidEventInfo is a name of class

C# code:

Public event SendNewBid ....??????
like image 619
What'sUP Avatar asked Mar 11 '11 14:03

What'sUP


People also ask

Can I convert Visual Basic to C#?

Eliminate Old Visual Basic Functions If you wish to move to C#, you must start eliminating usage of these built-in functions. Most VB to C# conversion tools translate these automatically for you, but you should get used to using the equivalent CLR objects and methods.

Can you convert C# to C?

There is no such thing as "convert". Not only the platforms, but the types of platforms are very different, paradigms and many ideas, level, all is different. You can write C# code using C as reference, but the opposite… just forget it, write all from scratch.

What is using in VB net?

1. Using in VB.net can also do compound entries where C# requires two separate lines. Also, implied types can be used, i.e.: Using x = New MemoryStream(buffer1), y = New MemoryStream(buffer2) ..... End Using.


1 Answers

public event EventHandler<BidEventInfo> SendNewBid;

for future conversions, you could use this online converter

like image 154
Bala R Avatar answered Oct 04 '22 03:10

Bala R