Compiler Error CS0185
'type' is not a reference type as required by the lock statement
The lock statement can only evaluate reference types. For more information, see Thread Synchronization (C# Programming Guide) and Reference Types (C# Reference).
The lock statement can only evaluate reference types. For more information, see Thread Synchronization (C# Programming Guide) and Reference Types (C# Reference).