Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1954
The best overloaded method match '{0}' for the collection initializer element cannot be used. Collection initializer 'Add' methods cannot have ref or out parameters.