我不会得到聚合异常没有被执行
namespace ExceptionTest
{
class Program
{
static void Main(string[] args)
{
Task<int> t1 = new Task<int>(() => Add());
try
{
t1.Start();
}
catch (AggregateException ag)
{
Console.WriteLine(ag.Message);
}
Console.ReadLine();
}
static int Add()
{
try
{
throw new ArgumentException("Exception");
}
catch(Exception e) { throw e; }
}
}
}