What is Environment.FailFast?

后端 未结 7 1869
别那么骄傲
别那么骄傲 2021-02-01 14:05

What is Environment.FailFast?

How is it useful?

7条回答
  •  我在风中等你
    2021-02-01 14:15

    From .NET Framework Design Guidelines on Exception Throwing:

    ✓ CONSIDER terminating the process by calling System.Environment.FailFast (.NET Framework 2.0 feature) instead of throwing an exception if your code encounters a situation where it is unsafe for further execution.

提交回复
热议问题