A
ASP.Net programmer
Hi,
I have a few methods in a class that I want to synchronize (make sure they
can't be used at the same time by multiple threads).
As a Java programmer I just do this:
public synchronized void methodName() {...}
What is the C# alternative for this?
TIA.
I have a few methods in a class that I want to synchronize (make sure they
can't be used at the same time by multiple threads).
As a Java programmer I just do this:
public synchronized void methodName() {...}
What is the C# alternative for this?
TIA.