Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8337
The first parameter of a 'ref' extension method '{0}' must be a value type or a generic type constrained to struct.