Replace SIZEOF_REGISTER with sizeof(mgreg_t) for consistency with sizeof(gpointer)
[mono.git] / mcs / class / corlib / System / Exception.cs
index 0f0ea62ce9c905abe5245f7c37083d5eba61744c..01a2a5b134a6dc11af6cffd96ef41fadeea9ec9c 100644 (file)
@@ -64,6 +64,15 @@ namespace System
                #endregion
 #pragma warning restore 169, 649               
 
+#if NET_4_0
+               protected event EventHandler<SafeSerializationEventArgs> SerializeObjectState {
+                       [MonoTODO]
+                       add { throw new NotImplementedException (); }
+                       [MonoTODO]
+                       remove { throw new NotImplementedException (); }
+               }
+#endif
+
                public Exception ()
                {
                }
@@ -262,7 +271,7 @@ namespace System
                        info.AddValue ("RemoteStackTraceString", _remoteStackTraceString);
                        info.AddValue ("RemoteStackIndex", remote_stack_index);
                        info.AddValue ("HResult", hresult);
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
                        info.AddValue ("Source", Source);
 #else
                        info.AddValue ("Source", null);