Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS0276
'{0}': accessibility modifiers on accessors may only be used if the property or indexer has both a get and a set accessor