TestLogger.Flatten C# (CSharp) Method

Flatten() static private method

static private Flatten ( Exception tr ) : Exception
tr Exception
return Exception
    static Exception Flatten(Exception tr)
    {
        if (!(tr is AggregateException))
            return tr;
        var err = ((AggregateException)tr).Flatten().InnerException;
        return err;
    }