Return in a lock statement

suggest change

Following code will release lock.

lock(locker)
{
    return 5;
}

For a detailed explanation, this SO answer is recommended.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents