* UnmanagedMemoryStream.cs: Move the CLS attribute to the methods
that are unsafe.
* Path.cs (Combine):e Fix implementation to follow docs (we need
to reset the path if any of the combined paths is rooted), and add a
couple of overloads;
* FileStream.cs (Flush/flushToDisk): Implement.
* Stream.cs (CopyTo): Implement.
svn path=/trunk/mcs/; revision=145640
2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStreamTest.cs: Add more test cases to cover all
validations
In System.IO:
2009-10-15 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStream.cs: Fix some and add missing validations
svn path=/trunk/mcs/; revision=144226
* 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
to read bytes as this allows us to start reading from the current
position. In Read, return 0 when reading beyond the end of the stream
and only read bytes until the end of the stream (not capacity).
In ReadByte, return -1 when reading beyond the end of the stream.
In SetLength: changed argument validation (and reported exceptions) to
match MS, removed duplicate access check and changed the current
position if length is less than position. In Write: throw
NotSupportedException when attempting to write beyond capacity, use
Marshal.WriteByte since that allows us to start writing from the
current position. Adjust length when position moves beyond length
in both Write and WriteByte. Allow position to be moved beyond
capacity of stream. Fixed position using Seek (=+ typo). Changed
CanRead to ignore current position. Allow Position to be used to move
beyond capacity of stream.
* UnmanagedMemoryStreamTest.cs: Added tests for CanRead, CanSeek,
CanWrite, Seek, Write. Improved existing tests for SetLength,
Position. Enabled tests that were previously failing.
svn path=/trunk/mcs/; revision=77972
more. Tests were previously ignored by NUnit because the SetUp method
was private.
* UnmanagedMemoryStream.cs: Changed argument names and exceptions
(msg, params) to match MS. Verify access argument in ctor.
svn path=/trunk/mcs/; revision=77894
* UnmanagedMemoryStream.cs: Should not have a public Dispose().
This behaviour is already provided by the base class.
svn path=/trunk/mcs/; revision=75324