C# Lock Statement
Locks critical code blocks
Functions like a Critical Section
Only works with Reference Objects
Lock(this)
{
m_EmployeeSalary *= 1.20; //Get a 20% raise!!!
...
}
Previous slide
Next slide
Back to first slide
View graphic version