Implement GetObjectData
authorNeale Ferguson <neale@sinenomine.net>
Wed, 31 Oct 2012 16:13:00 +0000 (12:13 -0400)
committerNeale Ferguson <neale@sinenomine.net>
Wed, 31 Oct 2012 16:13:00 +0000 (12:13 -0400)
mcs/class/corlib/System/AggregateException.cs

index 4c1b6ecdf57f95e6b8b65a5e33bf8d007ad22085..e9f03f6671166bc6c834da0fa904a74be5e54472 100644 (file)
@@ -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 ()