Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename...
[mono.git] / mcs / class / corlib / System.Runtime.ConstrainedExecution / CriticialFinalizerObject.cs
index 6895fe98206cde65fda1b7ac13298f3d7349d5cc..412377afed78d7d2a4f8c21d9d64e8680aca9ba2 100644 (file)
@@ -26,8 +26,6 @@
 // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 
-#if NET_2_0
-
 using System.Runtime.InteropServices;
 
 namespace System.Runtime.ConstrainedExecution
@@ -35,6 +33,12 @@ namespace System.Runtime.ConstrainedExecution
        [ComVisible (true)]
         public abstract class CriticalFinalizerObject
         {
+               //
+               // WARNING: If you add any fields here, update the definition
+               // for the runtime structures as well
+               //
+               
+               [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
                 protected CriticalFinalizerObject ()
                 {
                 }
@@ -45,4 +49,3 @@ namespace System.Runtime.ConstrainedExecution
                }
         }
 }
-#endif