10.7.2 Accessors
The accessor-declarations of a property specify the executable statements associated with reading and writing that property.
accessor-declarations: get-accessor-declaration set-accessor-declarationopt set-accessor-declaration get-accessor-declarationopt
get-accessor-declaration: attributesopt accessor-modifieropt get
accessor-body
set-accessor-declaration: attributesopt accessor-modifieropt set
accessor-body
accessor-modifier: protected
internal
private
protected internal
internal protected
accessor-body: block ;
The accessor ...
Get The C# Programming Language, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.