I
ilitirit
Are there any reasons against writing code like this?
class Foo
{
static string _SyncLock = String.Empty;
public void ThreadSafeMethod()
{
lock (_SyncLock)
{
// Code goes here
}
}
}
class Foo
{
static string _SyncLock = String.Empty;
public void ThreadSafeMethod()
{
lock (_SyncLock)
{
// Code goes here
}
}
}