Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1917
Members of readonly field '{0}' of type '{1}' cannot be assigned with an object initializer because it is of a value type