Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0185
'{0}' is not a reference type as required by the lock statement