Author: miguel
Date: 2007-01-13 02:05:49 -0500 (Sat, 13 Jan 2007)
New Revision: 70952

Added:
   
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleMinusOneIsInvalid.cs
   
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
   
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.cs
Modified:
   trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/ChangeLog
   
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
   trunk/mcs/class/corlib/corlib.dll.sources
Log:
i2007-01-13  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Add a few more missing helper classes.




Modified: trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/ChangeLog        
2007-01-13 05:04:50 UTC (rev 70951)
+++ trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/ChangeLog        
2007-01-13 07:05:49 UTC (rev 70952)
@@ -1,3 +1,7 @@
+2007-01-13  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Add a few more missing helper classes.
+
 2006-12-11  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * SafeWaitHandle.cs: Add new.

Added: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleMinusOneIsInvalid.cs
===================================================================
--- 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleMinusOneIsInvalid.cs
       2007-01-13 05:04:50 UTC (rev 70951)
+++ 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleMinusOneIsInvalid.cs
       2007-01-13 07:05:49 UTC (rev 70952)
@@ -0,0 +1,49 @@
+//
+// Microsoft.Win32.SafeHandles.CriticalHandleMinusOneIsInvalid
+//
+// Author
+//      Zoltan Varga ([EMAIL PROTECTED])
+//       Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.Win32.SafeHandles {
+
+       public abstract class CriticalHandleMinusOneIsInvalid : CriticalHandle, 
IDisposable {
+               protected CriticalHandleMinusOneIsInvalid () : base ((IntPtr) 
(-1)) {
+               }
+
+               public override bool IsInvalid {
+                       get {
+                               return handle == (IntPtr)(-1);
+                       }
+               }
+       }
+}
+
+#endif


Property changes on: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleMinusOneIsInvalid.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
===================================================================
--- 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
 2007-01-13 05:04:50 UTC (rev 70951)
+++ 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
 2007-01-13 07:05:49 UTC (rev 70952)
@@ -0,0 +1,49 @@
+//
+// Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid
+//
+// Author
+//      Zoltan Varga ([EMAIL PROTECTED])
+//       Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.Win32.SafeHandles {
+
+       public abstract class CriticalHandleZeroOrMinusOneIsInvalid : 
CriticalHandle, IDisposable {
+               protected CriticalHandleZeroOrMinusOneIsInvalid () : base 
((IntPtr) (-1)) {
+               }
+
+               public override bool IsInvalid {
+                       get {
+                               return handle == (IntPtr)(-1) || handle == 
IntPtr.Zero;
+                       }
+               }
+       }
+}
+
+#endif


Property changes on: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.cs
===================================================================
--- 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.cs
   2007-01-13 05:04:50 UTC (rev 70951)
+++ 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.cs
   2007-01-13 07:05:49 UTC (rev 70952)
@@ -0,0 +1,49 @@
+//
+// Microsoft.Win32.SafeHandles.SafeHandleMinusOneIsInvalid
+//
+// Author
+//      Zoltan Varga ([EMAIL PROTECTED])
+//       Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace Microsoft.Win32.SafeHandles {
+
+       public abstract class SafeHandleMinusOneIsInvalid : SafeHandle, 
IDisposable {
+               protected SafeHandleMinusOneIsInvalid (bool ownsHandle) : base 
((IntPtr) 0, ownsHandle) {
+               }
+
+               public override bool IsInvalid {
+                       get {
+                               return handle == (IntPtr)(-1);
+                       }
+               }
+       }
+}
+
+#endif


Property changes on: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
===================================================================
--- 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
     2007-01-13 05:04:50 UTC (rev 70951)
+++ 
trunk/mcs/class/corlib/Microsoft.Win32.SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
     2007-01-13 07:05:49 UTC (rev 70952)
@@ -33,7 +33,6 @@
 
 namespace Microsoft.Win32.SafeHandles {
 
-       [MonoTODO ("Not implemented on Mono")]
        public abstract class SafeHandleZeroOrMinusOneIsInvalid : SafeHandle, 
IDisposable {
                protected SafeHandleZeroOrMinusOneIsInvalid (bool ownsHandle) : 
base ((IntPtr) 0, ownsHandle) {
                }

Modified: trunk/mcs/class/corlib/corlib.dll.sources
===================================================================
--- trunk/mcs/class/corlib/corlib.dll.sources   2007-01-13 05:04:50 UTC (rev 
70951)
+++ trunk/mcs/class/corlib/corlib.dll.sources   2007-01-13 07:05:49 UTC (rev 
70952)
@@ -10,7 +10,10 @@
 Microsoft.Win32/UnixRegistryApi.cs
 Microsoft.Win32/Win32RegistryApi.cs
 Microsoft.Win32/Win32ResultCode.cs
+Microsoft.Win32.SafeHandles/CriticalHandleZeroOrMinusOneIsInvalid.cs
+Microsoft.Win32.SafeHandles/CriticalHandleMinusOneIsInvalid.cs
 Microsoft.Win32.SafeHandles/SafeHandleZeroOrMinusOneIsInvalid.cs
+Microsoft.Win32.SafeHandles/SafeHandleMinusOneIsInvalid.cs
 Microsoft.Win32.SafeHandles/SafeFileHandle.cs
 Microsoft.Win32.SafeHandles/SafeWaitHandle.cs
 Mono.Globalization.Unicode/CodePointIndexer.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to