2008-09-14 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System.IO / ChangeLog
index 3c67e3f6c277dd837254616353f94dffcc23ea1a..cf0ca1757f665241ac3c6e551b21683a89f80865 100644 (file)
@@ -1,3 +1,176 @@
+2008-08-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * FileStream.cs, MonoIO.cs: For Silverlight 2.0 (NET_2_1) we always
+       throw IsolatedStorageException instead of FileNotFoundException and
+       DirectoryNotFoundException.
+
+2008-08-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * FileStream.cs: Adjust exception being thrown for Silverlight 2.0.
+       * FileSystemInfo.cs: In Silverlight 2 this type does not inherit from 
+       MarshalByRefObject nor does it implement ISerializable.
+       * Stream.cs: In Silverlight 2 this type does not inherit from 
+       MarshalByRefObject.
+       * TextReader.cs: In Silverlight 2 this type does not inherit from 
+       MarshalByRefObject.
+       * TextWriter.cs: In Silverlight 2 this type does not inherit from 
+       MarshalByRefObject.
+       * UnmanagedMemoryStream.cs: For Silverlight 2 add CLSCompliant(false)
+       to the PositionPointer property.
+
+2008-08-15  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * StreamWriter.cs: Change argument check for buffersize to require
+       positive number. Removed duplicate disposed check for AutoFlush.
+       Removed unnecessary initialization of bools.
+
+2008-08-15  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * StreamWriter.cs: Removed duplicate argument checks from .ctor taking
+       path, as these checks are already done in FileStream .ctor. Removed
+       parameter name from ArgumentException to match MS.
+
+2008-07-28  Marek Safar <marek.safar@gmail.com>
+
+       * File.cs: Delay DateTime .cctor invocation.
+
+2008-07-04  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * File.cs: Fix parameter name
+
+2008-07-03  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * TextWriter.cs:
+       * StreamWriter.cs:
+       * StreamReader.cs:
+       * Stream.cs:
+       * MemoryStream.cs:
+       * File.cs:
+       * DriveNotFoundException.cs:
+       * Directory.cs: Fix parameter names
+
+2008-06-30  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * BinaryReader.cs: Fix parameter names
+       * BinaryWriter.cs: Fix parameter names, fix exceptions
+       * BufferedStream.cs: Fix parameter names
+       * Directory.cs: Fix parameter names, fix exceptions, optimize == "" cases
+       * DirectoryInfo.cs:
+       * DirectoryNotFoundException.cs:
+       * FileNotFoundException.cs:
+       * FileStream.cs: Fix parameter names, fix exceptions
+       * IOException.cs: Fix parameter names
+
+2008-06-21  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Path.cs: Fixed exception arguments to match MS. Removed obsolete
+       LAMESPEC comment. In GetPathRoot, throw ArgumentException if path
+       is whitespace-only. Throw ArgumentException in HasExtension, if path
+       contains invalid path characters.
+
+2008-05-29  Robert Jordan  <robertj@gmx.net>
+
+       * Path.cs (InsecureGetFullPath): Call CanonicalizePath for
+       UNC paths as well.
+       * Path.cs (GetServerAndShare): New helper method.
+       * Path.cs (SameRoot, CanonicalizePath): Add UNC support.
+       Fixes #394681 and a bunch of TestGetFullPath unit test cases.
+       All changes are Win32 related.
+
+2008-05-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * DriveInfo.cs: Fix compiler warning
+
+2008-05-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CheckArgument.cs: Removed. Lots of unused code. The two methods
+       used are now inlined into Path.cs
+       * CheckPermission.cs: Removed. Lots of unused code.
+       * Path.cs: Inlined two checks.
+       [Found using Gendarme]
+
+2008-04-18  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Path.cs: Change PathSeparatorChars from private to internal since
+       it's needed for IsolatedStorage.
+
+2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DirectoryInfo.cs: Added new internal ctor, which takes a bool that
+       indicates whether the original path should only container the last
+       part of the directory. Moved logic for determining the Name and
+       Parent to Initialize method, to allow it to be re-used on
+       deserialization. Renamed argument names to fix corcompare issues.
+       Added missing argument checks.
+       * Directory.cs (CreateDirectoriesInternal): Use internal ctor for
+       DirectoryInfo to ensure OriginalPath only contains last part of
+       the directory. 
+       * File.cs: Removed redundant checks from Create. On 2.0 profile, pass
+       FileOptions to FileStream. Removed redundant directory check from
+       Delete and modified exceptions to more closely match MS.
+       * FileInfo.cs: Added argument check to ctor to match MS. Added missing
+       deserialization ctor. Modified argument checks in MoveTo, and removed
+       redundant checks. Added missing argument checks in CopyTo. Code
+       formatting.
+       * FileSystemInfo.cs: Modified argument checks in CheckPath to more
+       closely match MS.
+       * MonoIO.cs: Added msg that does not disclose filename for 
+       ERROR_FILE_EXISTS. 
+       * Path.cs: Use String.Length instead of comparing with String.Empty.
+       Removed exceptions argument names to match MS.
+
+2008-04-16  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * File.cs: Changed argument names and thrown exception to better match
+       .NET. Use String.Length instead of comparison with empty string.
+       * DirectoryInfo.cs: Added missing deserialization ctor.
+
+2008-04-04  Dick Porter  <dick@ximian.com>
+
+       * File.cs: Pretty up the file share exception with the path name.
+
+2008-03-28  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Directory.cs: Exception differs when deleting a directory if it 
+       does not exists or if a file of the same name exists. Also don't 
+       include path in exception if Delete fails.
+
+2008-03-20  Marek Safar  <marek.safar@gmail.com>
+
+       * Path.cs (Combine): Call ToString to optimize concatenation.
+
+2008-03-02  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DriveInfo.cs: Removed debug code.
+
+2008-02-15  Miguel de Icaza  <miguel@novell.com>
+
+       * UnmanagedMemoryStream.cs: Implement few missing pieces.
+
+2008-02-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * UnexceptionalStreamReader.cs (Read): Optimize this to avoid making a number of
+       calls + creation of a string for each character read.
+
+2008-02-03  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * MemoryStream.cs: Remove unused code found by Gendarme.
+
+2008-01-16  Zoltan Varga  <vargaz@gmail.com>
+
+       * BinaryReader.cs: Fix ReadCharBytes method to avoid non-linear behavior. 
+       Fixes #352184.
+
+2007-12-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * MemoryStream.cs: Fix crash if internalBuffer is null. Avoid calling
+       unsafe icalls. Fixes #350860.
+
+2007-11-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * FileStream.cs : Close() does not exist in 2.0 (Stream does).
+         Move GC.SuppressFinalize() to Dispose(true).
+
 2007-11-12  Juraj Skripsky  <js@hotfeet.ch>
 
        * Path.cs (GetRandomFileName): Return filenames containing only