protected IExceptionWrapper[] GetInnerExceptions()
        {
#if ZEROFORMATTER
            return InnerException == null
                ? null
                : ZeroFormatterSerializer.Deserialize<IExceptionWrapper[]>(InnerException);
#endif
#if NETSERIALIZER
            return InnerException == null
                ? null
                : ExceptionWrapperSerializer.Deserialize<IExceptionWrapper[]>(InnerException, 0);
#endif
        }
        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
        }