2007-08-25 Robert Jordan <[email protected]>
* DateTime.cs: Implement internal To/FromBinary for the 1.1 profile.
In System.Runtime.Serialization.Formatters.Binary:
2007-08-25 Robert Jordan <[email protected]>
* ObjectReader.cs, ObjectWriter.cs, CodeGenerator.cs:
Use DateTime.From/ToBinary. Fixes#82400.
svn path=/trunk/mcs/; revision=84839
2007-08-23 Robert Jordan <[email protected]>
* corlib.dll.sources: Added MemberInfoSerializationHolder.cs.
In System.Runtime.Serialization.Formatters.Binary:
2007-08-23 Robert Jordan <[email protected]>
* ObjectReader.cs, ObjectReader.cs: Map between System.MonoType[] and
MS.NET's System.RuntimeType[].
* ObjectReader.cs (ReadType): When a type couldn't be found, emit
a more useful exception.
In System.Reflection:
2007-08-23 Robert Jordan <[email protected]>
* MemberInfoSerializationHolder.cs: created from
ReflectionSerializationHolder to match MS (fixes bug #80761).
Add support for fields, events, properties and generic methods.
* MonoMethod.cs (GetObjectData): handle generic arguments.
* MonoGenericMethod.cs: mark as [Serializable].
* MonoProperty.cs (GetObjectData): implemented.
* MonoField.cs: ditto.
* MonoEvent.cs: ditto.
svn path=/trunk/mcs/; revision=84732
2006-12-25 Robert Jordan <[email protected]>
* MethodCall.cs: Add support for generic methods.
* MethodCall.cs (GetTypeNameFromAssemblyQualifiedName):
Add support for generic types.
* ReturnMessage.cs: Fix bug #80371.
In System.Runtime.Serialization.Formatters.Binary:
2006-12-25 Robert Jordan <[email protected]>
* binary_serialization_format.htm: Update the NET_2_0 format.
* BinaryCommon.cs: MethodFlags is actually an int32. Add NET_2_0 flags.
* MessageFormatter.cs: Add support for generic method arguments.
* ObjectWriter.cs, ObjectReader.cs: Map between System.MonoType and
MS.NET's System.RuntimeType.
svn path=/trunk/mcs/; revision=70683
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
* ObjectWriter.cs:
* CodeGenerator.cs: No need to add the class for inherited fields,
since FieldInfo objects returned by the GetSerializableMembers
method will already include the class name if needed.
svn path=/trunk/mcs/; revision=44268
* BinaryCommon.cs: Added helper method for swapping bytes.
* ObjectReader.cs:
* ObjectWriter.cs: Implemented serialization of arrays of primitive
types using Buffer.BlockCopy to create byffers of data that is written/
read in a single call. It's much faster now.
svn path=/trunk/mcs/; revision=42162
* BinaryCommon.cs: Found the meaning of two unknown binary elements.
* CodeGenerator.cs: Derive generated classes from ClrTypeMetadata
instead of TypeMetadata. Added writeTypes parameter to WriteTypeData().
* ObjectWriter.cs: Use type and assembly names as keys for the type and
assembly caches. This is needed since ISerializable types can provide
fake type names (which are mapped to real types by a binder on
deserialization).
Implemented support for BinaryFormatter.TypeFormat.
* BinaryFormatter.cs, MessageFormatter.cs: Implemented support for
TypeFormat property.
* ObjectReader.cs: Added support for objects serialized without
member type information. This fixes bug #73114.
If a binder return null, use the default way of loading the type.
svn path=/trunk/mcs/; revision=41404
* CodeGenerator.cs, ObjectWriter.cs: When serializing the name of an
inherited field, prefix the name with the class name. This fixes#54439.
Moved check for reflection serialization variable to BinaryCommon.
svn path=/trunk/mcs/; revision=23358
is now possible to use fast IL generated classes that use direct access
to class fields instead of using reflection.
* CodeGenerator.cs: New file. Has several methods used by ObjectWriter to
generate serialization code.
svn path=/trunk/mcs/; revision=23171
not necessary to query them for every object.
* ObjectWriter.cs: If the value being serialized is a value type (not boxed)
then there is no need to register it in the ObjectIDGenerator, because it is
not possible to have two references to the same value type object.
svn path=/trunk/mcs/; revision=16342