private static IsCriticalException ( |
||
ex | ||
return | bool |
private static bool IsCriticalException(Exception ex)
{
return ex is NullReferenceException
|| ex is StackOverflowException
|| ex is OutOfMemoryException
//|| ex is System.Threading.ThreadAbortException
|| ex is IndexOutOfRangeException
|| ex is AccessViolationException;
}
private static bool IsSecurityOrCriticalException(Exception ex) { if (!(ex is SecurityException)) { return(MultitargetingHelpers.IsCriticalException(ex)); } return(true); }