G
Guest
Hi,
I have the following class:
class MyClass
{
public static void SomeMethod(string str)
{
string local = "AAA";
string test = local + str;
.....
}
}
This public static method can be used by multiple threads. Is it needed to
lock the local variable test, or every thread will have its own copy of this
variable as it is local?
Thanks,
Lubomir
I have the following class:
class MyClass
{
public static void SomeMethod(string str)
{
string local = "AAA";
string test = local + str;
.....
}
}
This public static method can be used by multiple threads. Is it needed to
lock the local variable test, or every thread will have its own copy of this
variable as it is local?
Thanks,
Lubomir