摘要:
public static class ExceptionExtensions { public static IEnumerable GetAllExceptions(this Exception ex) { Exception currentEx = ex; yield return currentEx; while (currentEx.InnerException != null) { currentEx = currentEx.InnerException; ... 阅读全文