Exception in static constructor

前端 未结 3 441
无人共我
无人共我 2020-12-28 12:27

I\'ve dug around SO for an answer to this, and the best one I can find so far is here, however that is geared toward instances with static constructors; I\'m only using the

3条回答
  •  渐次进展
    2020-12-28 13:20

    From MSDN:

    If a static constructor throws an exception, the runtime will not invoke it a second time, and the type will remain uninitialized for the lifetime of the application domain in which your program is running.

提交回复
热议问题