Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8166
Cannot return a parameter by reference '{0}' because it is not a ref or out parameter