Commit Graph
27 Commits
Author SHA1 Message Date
Marek Safar 185743cacd Rewrite of async StreamReader/StreamWritter operations to not fail on subsequent async call. Fixes #9761 2013-02-01 18:29:54 +01:00
Marek Safar 7b51bb0cb1 Implement stream async methods 2011-09-28 08:09:33 +01:00
Steve Bjorg 64ca8d506f TextReader.Null should return "" on ReadToEnd() 2011-02-25 01:49:37 -05:00
Miguel de Icaza debc26d250 Bug fix, on EOF, return null from ReadLine 2011-02-24 23:14:56 -05:00
Miguel de Icaza baecb9849b Add default implementations to ReadLine() and ReadToEnd() to TextReader, fixes 655934 2011-02-24 17:15:24 -05:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Bill Holmes 779f43ff6d 2008-11-09 William Holmes <[email protected]>
* corlib_test.dll.sources: Add TextReaderTest.cs.

	* TextReaderTest.cs: Added a test for the Null field of
         the TextReader.

	* TextReader.cs : Adding the NullTextReader as a private class to
	  the TestReader class for the Null field of the TestReader.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=118315
2008-11-09 15:10:46 +00:00
Bill Holmes b197271df7 Cleaning up eol's and adding the property.
svn path=/trunk/mcs/; revision=118027
2008-11-05 19:42:04 +00:00
Sebastien Pouliot 3b3c977ed0 2008-08-21 Sebastien Pouliot <[email protected]>
* 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.


svn path=/trunk/mcs/; revision=111271
2008-08-21 15:40:33 +00:00
Miguel de Icaza e12b3020bc A few more changes from Jesse Jones, use SupressFinalize on
Dispose(true) cases


svn path=/trunk/mcs/; revision=82916
2007-07-28 16:10:50 +00:00
Dick Porter 5b79519900 2007-04-30 Dick Porter <[email protected]>
* Directory.cs: 
	* FileShare.cs: 
	* DirectoryNotFoundException.cs: 
	* SeekOrigin.cs: 
	* FileAttributes.cs: 
	* IOException.cs: 
	* MemoryStream.cs: 
	* FileMode.cs: 
	* BinaryWriter.cs: 
	* TextWriter.cs: 
	* File.cs: 
	* BinaryReader.cs: 
	* TextReader.cs: 
	* UnmanagedMemoryStream.cs: 
	* StringWriter.cs: 
	* FileAccess.cs: 
	* FileLoadException.cs: 
	* BufferedStream.cs: 
	* Stream.cs: 
	* FileInfo.cs: 
	* FileStream.cs:
	* StringReader.cs: 
	* StreamWriter.cs: 
	* EndOfStreamException.cs: 
	* DriveInfo.cs: 
	* StreamReader.cs: 
	* PathTooLongException.cs: 
	* DriveType.cs: 
	* FileNotFoundException.cs: 2.0 profile updates



svn path=/trunk/mcs/; revision=76495
2007-04-30 14:05:12 +00:00
Duncan Mak 2bf1fe15bb Fix 2.0 buglets exposed by the MOMA tool.
2006-11-28  Duncan Mak  <[email protected]>

	* TextReader.cs (Dispose): Expose as public in NET_2_0.

2006-11-28  Duncan Mak  <[email protected]>

	* ArgumentNullException.cs (.ctor): Added new constructor that's
	new in .NET 2.0.

	* InsufficientMemoryException.cs: Added missing 2.0 exception.

svn path=/trunk/mcs/; revision=68632
2006-11-29 01:46:18 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Miguel de Icaza 7c95f0650a A couple more TODOs
svn path=/trunk/mcs/; revision=20012
2003-11-14 22:32:04 +00:00
Gonzalo Paniagua Javier 6e323452f6 2003-11-14 Gonzalo Paniagua Javier <[email protected]>
* FileStream.cs: use the argument name when throwing exception.

	* StreamReader.cs:
	* StringReader.cs:
	* TextReader.cs: added [In] attribute for the array in Read.

svn path=/trunk/mcs/; revision=19987
2003-11-14 04:06:38 +00:00
Miguel de Icaza a61252bd95 2003-10-28 Miguel de Icaza <[email protected]>
* StreamReader.cs: Add checks for disposed stream from bug report
	#48696 (Patrik Reali)

	* TextReader.cs (Read): Return the total number of bytes read,
	patch from Patrik Realli.

svn path=/trunk/mcs/; revision=19435
2003-10-28 17:55:05 +00:00
Miguel de Icaza 62012c26d0 2003-04-05 Miguel de Icaza <[email protected]>
* Console.cs: Make stderr, stdout and stdin use synchronized
	versions of the their readers/writers.

2003-03-20  Miguel de Icaza  <[email protected]>

	* Thread.cs (CurrentCuluture): use the invaraint culture instead
	of "" for the current_culture setting.

2003-04-05  Miguel de Icaza  <[email protected]>

	* TextWriter.cs: Implemented Synchronized method.

	* TextReader.cs: Implemented Synchronized method.

svn path=/trunk/mcs/; revision=13203
2003-04-05 19:00:53 +00:00
Gonzalo Paniagua Javier 7d303a6e51 2002-10-31 Gonzalo Paniagua Javier <[email protected]>
* TextReader.cs: implemented ReadBlock ().

svn path=/trunk/mcs/; revision=8701
2002-10-31 04:22:13 +00:00
Duncan Mak 6164d8a0ce 2002-04-30 Duncan Mak <[email protected]>
* FileLoadException.cs (constructors): Added missing (string,
	string) ctor, as well as (string, string, Exception) ctor.

	(Message): Added more info to the error message

	(ToString): Added. We'll need to add the StackTrace stuff when
	that works.

	* FileShare.cs: Add a missing field, Inheritable.

	* TextReader.cs: Renamed Synchronised method to Synchronized.

	* TextWriter.cs: Renamed Synchronised method to Synchronized.
	Renamed protected member coreNewLine to CoreNewLine.

svn path=/trunk/mcs/; revision=4182
2002-05-01 00:13:08 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Ravi Pratap M de8d750995 2002-01-04 Ravi Pratap <[email protected]>
* CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
	attribute decorations.

	* DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
	Path.cs, TextReader.cs, TextWriter.cs : Ditto.

	* FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
	Ditto.

svn path=/trunk/mcs/; revision=1832
2002-01-04 15:46:38 +00:00
Dietmar Maurer 43f3e90e35 2001-08-28 Dietmar Maurer <[email protected]>
* TextReader.cs: implemented the Read method

	* StreamReader.cs: impl. stubs

	* Console.cs: implemented the stdin stuff

svn path=/trunk/mcs/; revision=657
2001-08-28 13:26:34 +00:00
Dietmar Maurer a9cb3de8c9 added UnixWrapper, FileStream and Stream Class + various fixes
svn path=/trunk/mcs/; revision=501
2001-08-20 08:14:36 +00:00
Miguel de Icaza c6315db4f2 More contributions
svn path=/trunk/mcs/; revision=242
2001-07-19 20:00:18 +00:00
Miguel de Icaza d069c98174 Make it compile
svn path=/trunk/mcs/; revision=187
2001-07-16 22:31:13 +00:00
Miguel de Icaza ac9aaea8d4 Source files
svn path=/trunk/mcs/; revision=186
2001-07-16 22:25:35 +00:00
Miguel de Icaza 4dc202d35e 2001-07-16 Marcin Szczepanski <[email protected]>
* StringReader.cs, StringWriter.cs, TextReader.cs, TextWriter.cs:
	New class implemenations.

	* StringReaderTest.cs, StringWriterTest.cs: Test suite for the above.

2001-07-16  Marcin Szczepanski <[email protected]>

	* StringBuilder.cs (Text): Fixed.

	* StringBuilderTest.cs: Implement Test suite.

svn path=/trunk/mcs/; revision=184
2001-07-16 22:01:34 +00:00