Skip to content

Commit ecf59c5

Browse files
[create-pull-request] automated change (#1312)
Co-authored-by: jskeet <[email protected]>
1 parent e8ae8ef commit ecf59c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

standard/classes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5117,10 +5117,10 @@ The static constructor for a closed class executes at most once in a given appli
51175117

51185118
If a class contains the `Main` method ([§7.1](basic-concepts.md#71-application-startup)) in which execution begins, the static constructor for that class executes before the `Main` method is called.
51195119

5120-
To initialize a new closed class type, first a new set of static fields (§15.5.2) for that particular closed type shall be created. Each of the static fields shall be initialized to its default value (§15.5.5). Following this:
5120+
To initialize a new closed class type, first a new set of static fields ([§15.5.2](classes.md#1552-static-and-instance-fields)) for that particular closed type shall be created. Each of the static fields shall be initialized to its default value ([§15.5.5](classes.md#1555-field-initialization)). Following this:
51215121

51225122
- If there is either no static constructor or a non-extern static constructor then:
5123-
- the static field initializers (§15.5.6.2) shall be executed for those static fields;
5123+
- the static field initializers ([§15.5.6.2](classes.md#15562-static-field-initialization)) shall be executed for those static fields;
51245124
- then the non-extern static constructor, if any, shall be executed.
51255125
- Otherwise if there is an extern static constructor it shall be executed. Static variable initializers are not required to be executed by extern static constructors.
51265126

0 commit comments

Comments
 (0)