c# - Intentionally cause a fatal exception -


I need to make a fatal exception on demand using C #. Although I have taken enough time in this unknowingly, now I need it, I can not find any easy way.

It is easy to divide by zero reference error or zero etc. But I need something without the option to continue the CTD.

Thank you for your help.

Do not use one exception to accomplish this, there are many more side-effects to the program at all A non-exclusion exception that eliminates the program is a CLR policy that can be changed by both a custom CLR host and even today by the legacy disciplinary policy definition definition.

Without any clarification without taking any incident,


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -