A setter is declared using a property set declaration. A property set declaration consists of the keyword Set
followed by a block. Given a property named P
, a setter declaration implicitly declares a method with the name set_P
with the same modifiers and parameter list as the property. If the type contains a declaration with that name, an error results.
A local variable named Value
is implicitly declared within the block of a property set declaration. This variable represents the value being assigned to the property.
Set
[ Attributes ] LineTerminatorEnd
Set