Implement GetObjectData
[mono.git] / 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 ()