Commit Graph
24 Commits
Author SHA1 Message Date
Rodrigo Kumpera f378e23a3f Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:41:51 -05:00
Sebastien Pouliot e8c1345162 BinaryWriter.Dispose is needed in Profile[1-4] of the Portable Class Libraries. Fix bug #4871 2012-05-09 14:36:21 -04:00
Marek Safar 11db01b5a1 Add few new 4.5 overloads 2011-09-19 19:34:27 +01:00
Rodrigo Kumpera d72794cced Reorder fields to improve object layout since the runtime can't do it for corlib types. 2011-05-23 01:13:09 -03:00
Sebastien Pouliot dd7c825425 Fix API compatibility with SL4
* BinaryReader.cs:
* BinaryWriter.cs:
	Adding || MOONLIGHT since Dispose (new in FX4) is also exposed
	in SL4
2011-03-10 14:33:32 -05:00
Gonzalo Paniagua Javier bf7c6cfc35 BinaryWriter.BaseStream calls Flush()
Before returning the base stream, BinaryWriter.BaseStream calls Flush
	on it. Added test for this.

	Fixes bug #647948.
2010-10-24 18:43:18 -04:00
Miguel de Icaza 53e7b9d5b6 2009-10-21 Miguel de Icaza <[email protected]>
* BinaryWriter.cs, BinaryReader.cs: 4.0 signature update.

	* File.cs (ReadLines, AppendAllLines, WriteAllLines): Add
	IEnumerable methods.

	* Path.cs (Combine): add the params overload. 

svn path=/trunk/mcs/; revision=144597
2009-10-22 03:19:06 +00:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Andreas N 3df89d4a6d 2008-06-30 Andreas Nahr <[email protected]>
* 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

svn path=/trunk/mcs/; revision=106943
2008-06-30 23:02:31 +00:00
Atsushi Eno 4089f586b1 2007-10-26 Atsushi Enomoto <[email protected]>
* Encoding.cs : added UTF8UnmarkedUnsafe, for old empty replacement
	  UTF8.

	* BinaryReader.cs, BinaryWriter.cs : use unsafe encoding that has ""
	  for replacement fallback. Binary serialization regression is fixed.


svn path=/trunk/mcs/; revision=88276
2007-10-26 17:27:23 +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
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Lluis Sanchez a90febfa62 2005-03-16 Lluis Sanchez Gual <[email protected]>
* BinaryReader.cs, BinaryWriter.cs: Read/write dobules, floats and
	decimals in little endian format.


svn path=/trunk/mcs/; revision=42158
2005-03-23 17:26:15 +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
Ben Maurer 85154e396d 2004-04-30 Ben Maurer <[email protected]>
* BinaryWriter.cs, Stream.cs: ensure we have beforefieldinit.

svn path=/trunk/mcs/; revision=26449
2004-04-30 20:08:08 +00:00
Ben Maurer cce3945593 2003-12-28 Ben Maurer <[email protected]>
* BinaryWriter.cs: use one encoding buffer for writing
	strings rather than allocting one/string. HUGE perf
	boost when writing many strings.

svn path=/trunk/mcs/; revision=21518
2003-12-28 18:30:10 +00:00
Ville Palo a9de8761a3 2003-04-14 Ville Palo <[email protected]>
* BinaryWriter.cs: Fixed decimal writing and lots of
	ObjectDisposedExceptions added.

svn path=/trunk/mcs/; revision=13619
2003-04-14 19:43:26 +00:00
Miguel de Icaza d9c7c9c7f9 2002-10-30 Miguel de Icaza <[email protected]>
* BinaryWriter.cs: Use the UTF8Unmarker encoding by default, this
	is what .NET does.

svn path=/trunk/mcs/; revision=8685
2002-10-31 00:46:20 +00:00
Gonzalo Paniagua Javier 5bf2383288 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
* System.IO/BinaryReader.cs:
	* System.IO/BinaryWriter.cs:
	* System.IO/MemoryStream.cs:
	* System.IO/StreamReader.cs:
	* System.IO/StreamWriter.cs:
	* System.IO/StringReader.cs:
	* System.IO/StringWriter.cs:
	* System.IO/TextWriter.cs:
	* System.Threading/WaitHandle.cs: IDisposable fixes.

svn path=/trunk/mcs/; revision=7118
2002-08-28 02:30:47 +00:00
Dick Porter 0a4551c1ae 2002-08-19 Dick Porter <[email protected]>
* MonoType.cs: Add a space before the Assembly name in
	AssemblyQualifiedName (needed for resource files so the MS runtime
	can load types)

2002-08-19  Dick Porter  <[email protected]>

	* BinaryWriter.cs: The length of a string is counted in bytes, not
	chars

2002-08-19  Dick Porter  <[email protected]>

	* ResourceWriter.cs: Implemented all methods

	* ResourceReader.cs: Cope with our ResourceSet class name, as well
	as theirs

svn path=/trunk/mcs/; revision=6748
2002-08-19 10:56:32 +00:00
Piers Haken 9e63489461 Miscellaneous minor compliancy fixes:
* System/System/UriBuilder.cs: use visible EscapeString
	* corlib/System.Reflection/ManifestResourceInfo.cs: constructor access, define fields
	* corlib/System/Convert.cs: remove erroneous CLSCompliant attributes
	* corlib/System/Math.cs: remove erroneous CLSCompliant attribute

	Fix enum values:
	* System/System.CodeDom/CodeBinaryOperatorType.cs
	* System/System.Net.Sockets/ProtocolFamily.cs
	* corlib/System.Globalization/CultureTypes.cs
	* corlib/System.Reflection/FieldAttributes.cs
	* corlib/System.Runtime.InteropServices/AssemblyRegistrationFlags.cs
	* corlib/System.Security.Cryptography/CipherMode.cs
	* corlib/System.Security.Cryptography/CspProviderFlags.cs
	* corlib/System.Security.Cryptography/PaddingMode.cs
	* corlib/System.Security.Permissions/IsolatedStorageContainment.cs
	* corlib/System.Security.Permissions/ReflectionPermissionFlag.cs
	* corlib/System.Security.Permissions/SecurityPermissionFlag.cs
	* corlib/System.Security/PolicyLevelType.cs
	* corlib/System.Security/SecurityZone.cs
	* corlib/System/AttributeTargets.cs
	* corlib/System/Environment.cs

	Remove redundant overrides:
	* corlib/System.Reflection.Emit/EnumBuilder.cs
	* corlib/System.Reflection.Emit/TypeBuilder.cs
	* corlib/System/MissingFieldException.cs
	* corlib/System/MissingMemberException.cs
	* corlib/System/MissingMethodException.cs

	Fix visibility and access modifiers:
	* System/System.CodeDom.Compiler/CodeGenerator.cs
	* System/System.Collections.Specialized/NameObjectCollectionBase.cs
	* System/System.Collections.Specialized/NameValueCollection.cs
	* System/System.ComponentModel/EventDescriptor.cs
	* System/System.ComponentModel/EventDescriptorCollection.cs
	* System/System.Diagnostics/ProcessStartInfo.cs
	* System/System.Net/DnsPermission.cs
	* System/System.Net/SocketPermission.cs
	* System/System/Uri.cs
	* corlib/System.IO/StreamReader.cs
	* corlib/System.IO/StringReader.cs
	* corlib/System.IO/StringWriter.cs
	* corlib/System.IO/TextWriter.cs
	* corlib/System.Reflection.Emit/ConstructorBuilder.cs
	* corlib/System.Reflection.Emit/MethodBuilder.cs
	* corlib/System.Reflection.Emit/OpCodes.cs
	* corlib/System.Reflection/Assembly.cs
	* corlib/System.Runtime.Remoting.Messaging/ReturnMessage.cs
	* corlib/System.Runtime.Serialization/SerializationException.cs
	* corlib/System/Activator.cs
	* corlib/System/Array.cs
	* corlib/System/Boolean.cs
	* corlib/System/Byte.cs
	* corlib/System/Char.cs
	* corlib/System/DateTime.cs
	* corlib/System/DivideByZeroException.cs
	* corlib/System/Double.cs
	* corlib/System/Int16.cs
	* corlib/System/Int32.cs
	* corlib/System/Int64.cs
	* corlib/System/SByte.cs
	* corlib/System/Single.cs
	* corlib/System/Type.cs
	* corlib/System/UInt16.cs
	* corlib/System/UInt32.cs
	* corlib/System/UInt64.cs

	Fix IDisposable, Dispose() mess
	* corlib/System.IO/BinaryWriter.cs
	* corlib/System.IO/BufferedStream.cs
	* corlib/System.IO/FileStream.cs
	* corlib/System.IO/MemoryStream.cs
	* corlib/System.IO/Stream.cs

svn path=/trunk/mcs/; revision=4416
2002-05-08 13:21:13 +00:00
Sergey Chaban fc3048b245 * BinaryReader.cs: internal buffer fix. Little-endian conversions.
* BinaryWriter.cs: little-endian conversions.

svn path=/trunk/mcs/; revision=4168
2002-04-30 14:32:21 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Matt Kimball 7ab49e1517 Wed Jan 9 16:04:39 MST 2002 Matt Kimball <[email protected]>
* BinaryWriter.cs: Initial implementation.  And it's all there.

	* BinaryReader.cs: The constructor now uses the passed in encoding,
	not UTF8 always.

svn path=/trunk/mcs/; revision=1933
2002-01-09 19:13:42 +00:00