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
14
14
// Property that has both get and set defined.
15
15
[ attributes ]
16
16
[ static ] member [accessibility-modifier] [self-identifier.]PropertyName
17
- with [accessibility-modifier] get() =
17
+ with [ attributes-for-get ] [ accessibility-modifier] get() =
18
18
get-function-body
19
- and [accessibility-modifier] set parameter =
19
+ and [ attributes-for-set ] [ accessibility-modifier] set parameter =
20
20
set-function-body
21
21
22
22
// 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() =
25
25
get-function-body
26
- [ attributes-for-set ]
27
26
[ static ] member [accessibility-modifier-for-set] [self-identifier.]PropertyName
28
- with set parameter =
27
+ with [ attributes-for-set ] set parameter =
29
28
set-function-body
30
29
31
30
// Property that has get only.
@@ -34,15 +33,13 @@ with set parameter =
34
33
get-function-body
35
34
36
35
// Alternative syntax for property that has get only.
37
- [ attributes ]
38
36
[ static ] member [accessibility-modifier] [self-identifier.]PropertyName
39
- with get() =
37
+ with [ attributes ] get() =
40
38
get-function-body
41
39
42
40
// Property that has set only.
43
- [ attributes ]
44
41
[ static ] member [accessibility-modifier] [self-identifier.]PropertyName
45
- with set parameter =
42
+ with [ attributes ] set parameter =
46
43
set-function-body
47
44
48
45
// Automatically implemented properties.
You can’t perform that action at this time.
0 commit comments