Skip to content

Instantly share code, notes, and snippets.

@plioi
Created August 7, 2013 02:21
Show Gist options
  • Save plioi/6170663 to your computer and use it in GitHub Desktop.
Save plioi/6170663 to your computer and use it in GitHub Desktop.
ExceptionList exceptions = new ExceptionList();
try
{
method.Invoke(instance, null);
}
catch (TargetInvocationException ex)
{
exceptions.Add(ex.InnerException);
}
catch (Exception ex)
{
exceptions.Add(ex);
}
return exceptions;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment