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 7d4c8fd6f1596ed1908cad78e054755345fc859c..412377afed78d7d2a4f8c21d9d64e8680aca9ba2 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 
-#if NET_2_0
+using System.Runtime.InteropServices;
+
 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 ()
                 {
                 }
 
-               [ReliabilityContract (Consistency.WillNotCorruptState, CER.Success)]
+               [ReliabilityContract (Consistency.WillNotCorruptState, Cer.Success)]
                ~CriticalFinalizerObject ()
                {
                }
         }
 }
-#endif