Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0119
'{0}' is a {1}, which is not valid in the given context