Here is the order of operation for constructing the first instance of a type.
-
static variable storage is set to
-
static variable initializers execute
-
static constructor for the base class execute
-
the static constructor execute
-
instance variable storage is set to 0
-
instance variable initializers execute
-
the appropriate base class instance constructor executes
-
the instance constructor executes
浙公网安备 33010602011771号