Author: spouliot
Date: 2006-11-01 08:29:21 -0500 (Wed, 01 Nov 2006)
New Revision: 67214

Modified:
   trunk/mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog
   
trunk/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeWrappedException.cs
Log:
2006-11-01  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * RuntimeWrappedException.cs: Add missing GetObjectData method.



Modified: trunk/mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog    
2006-11-01 13:25:38 UTC (rev 67213)
+++ trunk/mcs/class/corlib/System.Runtime.CompilerServices/ChangeLog    
2006-11-01 13:29:21 UTC (rev 67214)
@@ -1,3 +1,7 @@
+2006-11-01  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * RuntimeWrappedException.cs: Add missing GetObjectData method.
+
 2006-08-22  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * MethodImplOptions.cs, MethodCodeType.cs, LoadHint.cs,

Modified: 
trunk/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeWrappedException.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeWrappedException.cs
   2006-11-01 13:25:38 UTC (rev 67213)
+++ 
trunk/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeWrappedException.cs
   2006-11-01 13:29:21 UTC (rev 67214)
@@ -4,10 +4,8 @@
 // Author: Zoltan Varga ([EMAIL PROTECTED])
 //
 // (C) Copyright, Ximian Inc.
-
+// Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com)
 //
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -28,10 +26,11 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
-
 #if NET_2_0
 
+using System.Runtime.Serialization;
+using System.Security.Permissions;
+
 namespace System.Runtime.CompilerServices {
 
        [Serializable]
@@ -42,7 +41,8 @@
 #endregion
 
                // Called by the runtime
-               private RuntimeWrappedException () {
+               private RuntimeWrappedException () 
+               {
                }
 
                public object WrappedException {
@@ -50,6 +50,13 @@
                                return wrapped_exception;
                        }
                }
+
+               [SecurityPermission (SecurityAction.LinkDemand, 
SerializationFormatter = true)]
+               public override void GetObjectData (SerializationInfo info, 
StreamingContext context)
+               {
+                       base.GetObjectData (info, context);
+                       info.AddValue ("WrappedException", wrapped_exception);
+               }
        }
 }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to