protected override void ExportProperties(AggregateException exception) { if (exception.InnerExceptions.Count > 0) #if ZEROFORMATTER InnerException = ZeroFormatterSerializer.Serialize(exception.InnerExceptions .Select(ExceptionFactory.PackException).ToArray()); #endif #if NETSERIALIZER using (var stream = new MemoryStream()) { ExceptionWrapperSerializer.Serialize(stream, exception.InnerExceptions.Select(ExceptionFactory.PackException).ToArray()); InnerException = stream.ToArray(); } #endif }