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
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