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 ....??????
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.
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.
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.
public event EventHandler<BidEventInfo> SendNewBid;
for future conversions, you could use this online converter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With