static string CompoundStackTrace(IEnumerable<Exception> exceptions) { using (var writer = new StringWriter()) { writer.WriteCompoundStackTrace(exceptions); return writer.ToString(); } }