From: Neale Ferguson Date: Wed, 31 Oct 2012 16:13:00 +0000 (-0400) Subject: Implement GetObjectData X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=9b2fdf9816c8c476eb84959ad6af3ee25ca64bc6;p=mono.git Implement GetObjectData --- diff --git a/mcs/class/corlib/System/AggregateException.cs b/mcs/class/corlib/System/AggregateException.cs index 4c1b6ecdf57..e9f03f66711 100644 --- a/mcs/class/corlib/System/AggregateException.cs +++ b/mcs/class/corlib/System/AggregateException.cs @@ -150,7 +150,11 @@ namespace System public override void GetObjectData (SerializationInfo info, StreamingContext context) { - throw new NotImplementedException (); + if (info == null) { + throw new ArgumentNullException("info"); + } + base.GetObjectData(info, context); + info.AddValue ("InnerExceptions", innerExceptions.ToArray(), typeof (Exception[])); } public override Exception GetBaseException ()