AK.F1.Timing.Extensions.ExceptionExtensions.IsFatal C# (CSharp) Method

IsFatal() public static method

Returns a value indicating if the specified System.Exception is classed as fatal.
public static IsFatal ( this exc ) : bool
exc this The exception.
return bool
        public static bool IsFatal(this Exception exc)
        {
            return exc != null &&
                (exc is StackOverflowException ||
                exc is ThreadAbortException ||
                exc is OutOfMemoryException ||
                exc is ExecutionEngineException ||
                exc is ArgumentException);
        }