using System.Collections.Generic;
public static void Main()
var ex1 = new ApplicationException("1");
var ex2 = new ApplicationException("2");
var aggEx = new AggregateException(new List<Exception>{ex1,ex2});
} catch (AggregateException) {
catch (AggregateException aggException) {
foreach(var aggEx2 in aggException.InnerExceptions)
Console.WriteLine("Slack2: " + aggEx2.Message);
Console.WriteLine("Slack: " + ex.Message);