Compiler Error CS1604
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error CS1604 

Error Message

Cannot assign to 'variable' because it is read-only

An assignment was made to a read-only variable. To avoid this error, do not assign or attempt to modify to this variable in this context.

© 2016 Microsoft