From be41aa16cec4098d58e6acf9fa999a7f837ca3a1 Mon Sep 17 00:00:00 2001 From: joncham Date: Sat, 12 May 2007 15:03:37 +0000 Subject: [PATCH] 2007-05-12 Jonathan Chambers * FileStream.cs: Implement SafeHandle constructors. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@77278 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- class/corlib/System.IO/ChangeLog | 4 ++++ class/corlib/System.IO/FileStream.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/class/corlib/System.IO/ChangeLog b/class/corlib/System.IO/ChangeLog index 0448d13a32..b6b8f209cf 100644 --- a/class/corlib/System.IO/ChangeLog +++ b/class/corlib/System.IO/ChangeLog @@ -1,3 +1,7 @@ +2007-05-12 Jonathan Chambers + + * FileStream.cs: Implement SafeHandle constructors. + 2007-05-01 Dick Porter * File.cs: diff --git a/class/corlib/System.IO/FileStream.cs b/class/corlib/System.IO/FileStream.cs index 7020b85d4d..f7d7423371 100644 --- a/class/corlib/System.IO/FileStream.cs +++ b/class/corlib/System.IO/FileStream.cs @@ -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, -- 2.11.4.GIT