Equivalent in VB.NET ?

  • Thread starter Thread starter MobileBoy36
  • Start date Start date
M

MobileBoy36

Hello group,

What is the equivalent of this code snippet in C#?

public event EventHandler OnConnect
{
add { lock(syncRoot) { connectedEvent += value; } }
remove { lock(syncRoot) { connectedEvent -= value; } }
}

best regards,
Mobile Boy
 
Thanks for your response Daniel...

Do you already now how to achieve the += in VB.NET on the line
connectedEvent += value?

best regards
 
Back
Top