The documentation of the order of static constructors is wrong. #41629
Labels
doc-bug
Problem with the content; needs to be fixed [org][type][category]
dotnet-csharp/svc
fundamentals/subsvc
okr-health
Content-health KR: Concerns article defects/freshness or build warnings.
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Type of issue
Other (describe below)
Description
The following bit seems wrong.
As I will demonstrate, in cases where the members of the base class is not accessed by the deriving class, the deriving class constructor will run before the base constructor.
The results are different in the two cases:
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-constructors
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/programming-guide/classes-and-structs/static-constructors.md
Document Version Independent Id
ac4f6361-70a7-fb43-101e-c12044f60896
Article author
@BillWagner
Metadata
Associated WorkItem - 275698
The text was updated successfully, but these errors were encountered: