Q:

Add function to an event?

A friend of mine gave me a project in C#, but I needed it on VB.Net, so I started to translate it.
But there was a line that's a little bit akward, and I can't translate (neither does him).
LBTelemetry.Data += LBTelemetry_Data;

This is the source code from the DLL that concerns it:
public delegate void TelemetryData(LBTelemetry_A data, bool useTimestamp);

 public class LBTelemetry
 {
    public event TelemetryData Data;
    //...
 }

Is there a way to translate it into VB.Net?
Thanks

A:

The data types of that line are not clear, but it looks like it might be adding an event handler, which you can do like this:
AddHandler LBTelemetry.Data, LBTelemetry_Data

