File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
docs/fsharp/language-reference/members Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,17 @@ ms.date: 05/16/2016
1414// Property that has both get and set defined.
1515[ attributes ]
1616[ static ] member [accessibility-modifier] [self-identifier.]PropertyName
17- with [accessibility-modifier] get() =
17+ with [ attributes-for-get ] [ accessibility-modifier] get() =
1818 get-function-body
19- and [accessibility-modifier] set parameter =
19+ and [ attributes-for-set ] [ accessibility-modifier] set parameter =
2020 set-function-body
2121
2222// Alternative syntax for a property that has get and set.
23- [ attributes- for-get ]
24- [ static ] member [accessibility-modifier- for-get] [self-identifier.]PropertyName =
23+ [ static ] member [accessibility-modifier- for-get] [self-identifier.]PropertyName
24+ with [ attributes- for-get ] get() =
2525 get-function-body
26- [ attributes-for-set ]
2726[ static ] member [accessibility-modifier-for-set] [self-identifier.]PropertyName
28- with set parameter =
27+ with [ attributes-for-set ] set parameter =
2928 set-function-body
3029
3130// Property that has get only.
@@ -34,15 +33,13 @@ with set parameter =
3433 get-function-body
3534
3635// Alternative syntax for property that has get only.
37- [ attributes ]
3836[ static ] member [accessibility-modifier] [self-identifier.]PropertyName
39- with get() =
37+ with [ attributes ] get() =
4038 get-function-body
4139
4240// Property that has set only.
43- [ attributes ]
4441[ static ] member [accessibility-modifier] [self-identifier.]PropertyName
45- with set parameter =
42+ with [ attributes ] set parameter =
4643 set-function-body
4744
4845// Automatically implemented properties.
You can’t perform that action at this time.
0 commit comments