Skip to content

Commit

Permalink
Noted static constructor behavior with static methods assigned to del…
Browse files Browse the repository at this point in the history
…egates (#12361)
  • Loading branch information
Ron Petrusha committed May 15, 2019
1 parent 4dabe7d commit ca5b8cc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -16,7 +16,7 @@ A static constructor is used to initialize any [static](../../../csharp/language

- A static constructor does not take access modifiers or have parameters.

- A static constructor is called automatically to initialize the [class](../../../csharp/language-reference/keywords/class.md) before the first instance is created or any static members are referenced.
- A static constructor is called automatically to initialize the [class](../../../csharp/language-reference/keywords/class.md) before the first instance is created or any static members are referenced. Note that a type's static constructor is called when a static method assigned to an event or a delegate is invoked and not when it is assigned.

- A static constructor cannot be called directly.

Expand Down

0 comments on commit ca5b8cc

Please sign in to comment.