2007-05-12 Jonathan Chambers <joncham@gmail.com>
authorJonathan Chambers <joncham@gmail.com>
Sat, 12 May 2007 15:03:37 +0000 (15:03 -0000)
committerJonathan Chambers <joncham@gmail.com>
Sat, 12 May 2007 15:03:37 +0000 (15:03 -0000)
* FileStream.cs: Implement SafeHandle constructors.

svn path=/trunk/mcs/; revision=77278

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/FileStream.cs

index 0448d13a323f321e5fe2d730323c112c47f5b8eb..b6b8f209cfcd0e29dd5bacbb10a22120a0edd2aa 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-12  Jonathan Chambers  <joncham@gmail.com>
+
+       * FileStream.cs: Implement SafeHandle constructors.
+
 2007-05-01  Dick Porter  <dick@ximian.com>
 
        * File.cs:
index 7020b85d4d93f94d02ec1122f51c33406dfc6343..f7d7423371ca437b1d5daa54753f3409bd70b912 100644 (file)
@@ -163,10 +163,11 @@ namespace System.IO
                {
                }
                
+               [MonoLimitationAttribute("Need to use SafeFileHandle instead of underlying handle")]
                public FileStream (SafeFileHandle handle, FileAccess access,
                                   int bufferSize, bool isAsync)
+                       :this (handle.DangerousGetHandle (), access, false, bufferSize, isAsync)
                {
-                       throw new NotImplementedException ();
                }
 
                public FileStream (string path, FileMode mode,