From 13e2f8da3f82558df2397a0e52569de4d43b60c4 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Tue, 24 Feb 2009 13:19:52 +0000 Subject: [PATCH] 2009-02-24 Sebastien Pouliot * SafeHandle.cs: Add default ctor in 2.1 profile (needed to compile new unit tests in moonlight). svn path=/trunk/mcs/; revision=127861 --- mcs/class/corlib/System.Runtime.InteropServices/ChangeLog | 5 +++++ mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog b/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog index 6ce8237f871..35213344bee 100644 --- a/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog +++ b/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog @@ -1,3 +1,8 @@ +2009-02-24 Sebastien Pouliot + + * SafeHandle.cs: Add default ctor in 2.1 profile (needed to compile + new unit tests in moonlight). + 2008-06-21 Gert Driesen * Marshal.cs: Fixed order of arguments for ArgumentException in diff --git a/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs b/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs index 85c73aa5940..5a5ef2c5f1e 100644 --- a/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs +++ b/mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs @@ -62,6 +62,12 @@ namespace System.Runtime.InteropServices int refcount = 0; bool owns_handle; +#if NET_2_1 + protected SafeHandle () + { + throw new NotImplementedException (); + } +#endif [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)] protected SafeHandle (IntPtr invalidHandleValue, bool ownsHandle) { -- 2.11.4.GIT