Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 737 Bytes

Method_Body_Placement.md

File metadata and controls

31 lines (24 loc) · 737 Bytes

Method Body Placement

Alter some the restriction about where the first statement of method body, can placed.

Example

Public Property Value() As T
  Get
    Return _Value
  End Get
  Set(value As T)
    Me._Value = value
  End Set
End Property

is equivalent to

Public Property Value() As T
  Get             : Return _Value       : End Get
  Set(value As T) : Me._Value = value   : End Set
End Property

Implementation

This can be achieve by making the production of the diagnostic conditional, on wether the feature is enabled or not.

Method Block Context