Well, this question is way too old but, here is a compact one I figured out, both codes will end up to the same compiled statements (this and the one in the question description):
lock (obj1) lock (obj2)
{
// your code
}
Well, this question is way too old but, here is a compact one I figured out, both codes will end up to the same compiled statements (this and the one in the question description):
lock (obj1) lock (obj2)
{
// your code
}