By mswatcher
via ericlippert.com
Submitted: Feb 15 2013 / 06:35
Earlier in this series I recommended that you brush up on how instance constructors work; if you did, then you'll recall that instance field initializers are essentially moved into the beginning of an instance constructor at a point before the call to the base class constructor. You might think that static field initializers work the same: a static field initializer is silently inserted at the beginning of the static constructor. And that's true. Mostly.
Tweet
SaveShareSend
Tags: .net, frameworks, other languages
Comments
Voters For This Link (2)
Voters Against This Link (0)