In order to lock/unlock an object use the.
-
Lock and Unlock methods
-
Enter and Exit methods
-
Close and Open methods
-
Close and Allow methods
B
Correct answer
Explanation
The Monitor class uses Enter() to acquire a lock and Exit() to release it. In C#, you typically use the lock keyword which compiles to Monitor.Enter and Monitor.Exit. Lock/Unlock and Close/Open are not the correct method names for this purpose.