* BinarySerializationOverVersions.cs: Use appdomains as they are much more robust to
environmental differences. We don't need to ensure we're using the right mono with
the right mscorlib.
Modifies ObjectReader so that when it encounters a primitive typed member in
an object stream which has no corresponding member in the app domain, it will
read the value anyway and throw it away. That way it can read the next block
from the stream.
Added a unit test which passes with the changes to ObjectReader.
Fixes bug #641821.
This commit includes unit tests that were run in MS.NET > 2.0.
The old behaviour of MS.NET 1.1 is still included in the patch
as an ONLY_1_1 define, to be backport-friendly to other branches
(but can be removed from now on in next commits, as mono master
doesn't include this profile anymore). Fixes BNC#324144.
Fix#79159
* ObjectWriter.cs (WritePrimitiveTypeArray) [NET_2_0]: Encode the
'Kind' of each DateTime.
* ObjectReader.cs (ReadArrayOfPrimitiveType) [NET_2_0]: Decode the
'Kind' of each DateTime.
In Test/System.Runtime.Serialization.Formatters.Binary:
* BinaryFormatterTest.cs (DateTimeArray): New test for
round-tripping DateTime arrays.
svn path=/trunk/mcs/; revision=64929
* BinaryFormatterCas.cs: New. Partial CAS tests for BinaryFormatter.
Added to test UnsafeDeserialization.
* BinaryFormatterTest.cs: New. Partial Unit tests for BinaryFormatter.
Added to test UnsafeDeserialization.
svn path=/trunk/mcs/; revision=54046