Author: miguel
Date: 2006-11-27 17:16:36 -0500 (Mon, 27 Nov 2006)
New Revision: 68533
Modified:
trunk/mcs/class/corlib/System/ChangeLog
trunk/mcs/class/corlib/System/Exception.cs
Log:
2006-11-27 Miguel de Icaza <[EMAIL PROTECTED]>
* Exception.cs (GetType): New method in 2.x, Another Moma catch.
Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog 2006-11-27 21:50:44 UTC (rev
68532)
+++ trunk/mcs/class/corlib/System/ChangeLog 2006-11-27 22:16:36 UTC (rev
68533)
@@ -1,4 +1,7 @@
+2006-11-27 Miguel de Icaza <[EMAIL PROTECTED]>
+ * Exception.cs (GetType): New method in 2.x, Another Moma catch.
+
Mon Nov 27 19:34:16 CET 2006 Paolo Molaro <[EMAIL PROTECTED]>
* GC.cs: implemented the needed methods with icalls.
Modified: trunk/mcs/class/corlib/System/Exception.cs
===================================================================
--- trunk/mcs/class/corlib/System/Exception.cs 2006-11-27 21:50:44 UTC (rev
68532)
+++ trunk/mcs/class/corlib/System/Exception.cs 2006-11-27 22:16:36 UTC (rev
68533)
@@ -328,6 +328,19 @@
}
#endif
return mi.DeclaringType.ToString () + "." + mi.Name +
generic + " (" + parms + ")";
- }
+ }
+
+#if NET_2_0
+ //
+ // The documentation states that this is available in 1.x,
+ // but it was not available (MemberRefing this would fail)
+ // and it states the signature is `override sealed', but the
+ // correct value is `newslot'
+ //
+ public new Type GetType ()
+ {
+ return base.GetType ();
+ }
+#endif
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches