2005-12-07 Sebastien Pouliot * BinaryFormatter.cs: Implemented UnsafeDeserialize and UnsafeDeserializeMethodResponse methods. Fixes last TODO in this namespace (for both 1.1 and 2.0 profiles). 2005-12-07 Lluis Sanchez Gual * ObjectReader.cs: Added null check in GetDeserializationType. Patch by Ben Maurer. Fixes bug #69666. 2005-12-01 Sebastien Pouliot * BinaryFormatter.cs: Added a demand for SerializationFormatter on Serialize method (to make some CAS test work correctly). 2005-05-26 Ben Maurer * CodeGenerator.cs: Move module creation to cctor to kill double checked locking and typeof locking. 2005-05-17 Lluis Sanchez Gual * CodeGenerator.cs: Don't generate debug info here. 2005-05-09 Lluis Sanchez Gual * 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. 2005-03-23 Lluis Sanchez Gual * 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. 2005-03-01 Lluis Sanchez Gual * 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. 2005-02-25 Lluis Sanchez Gual * ObjectReader.cs: In ReadArrayOfPrimitiveType, added a specific read loop for each type. It's much faster and avoids value boxings. 2005-01-10 Lluis Sanchez Gual * BinaryCommon.cs: IntPtr is not a primitive type in the serialization world. This fixes bug #70757. 2004-12-15 Lluis Sanchez Gual * ObjectReader.cs: Use GetField instead of GetMembers. Properties can't be serialized, so it makes no sense to use GetMembers. 2004-12-08 Zoltan Varga * CodeGenerator.cs: Call new DefineInternalDynamicAssembly method to prevent a race condition in the setting of the CorlibInternal flag. 2004-12-06 Zoltan Varga * CodeGenerator.cs: Mark the created assembly builder as internal. 2004-11-29 Lluis Sanchez Gual * CodeGenerator.cs: Addded EnumToUnderlying method to get the underlying type of an enum. This fixes bug #69753. 2004-07-02 Lluis Sanchez Gual * BinaryCommon.cs: Added CheckSerializable method. * ObjectWriter.cs: Check for type serializability even for members with null values. 2004-05-29 Gonzalo Paniagua Javier * ObjectWriter.cs: reduce contention in GetObjectData. 2004-05-14 Vladimir Vukicevic * binary_serialization_format.htm: renamed filename from having spaces to _'s (checked with lluis) 2004-05-13 Lluis Sanchez Gual * ObjectWriter.cs: Fixed and Simplified WriteGenericArray and WriteSingleDimensionArrayElements. This also fixes bug #58345. 2004-05-03 Lluis Sanchez Gual * MessageFormatter.cs: In the all-are-primitive case, serialize Args, not OutArgs. 2004-04-28 Lluis Sanchez Gual * MessageFormatter.cs: Serialize Args, not OutArgs, like in MS.NET. 2004-04-26 Lluis Sanchez Gual * ObjectReader.cs, ObjectWriter.cs: FIXME cleaning. 2004-04-20 Lluis Sanchez Gual * CodeGenerator.cs, ObjectReader.cs, ObjectWriter.cs: Serialize decimals as strings, like in MS.NET. This fixes bug #57186. 2004-02-23 Lluis Sanchez Gual * BinaryCommon.cs: Added UseReflectionSerialization property. * 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. 2004-02-17 Lluis Sanchez Gual * ObjectWriter.cs: Factorized some serialization code in new classes, so it 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. 2004-02-05 Lluis Sanchez Gual * ObjectWriter.cs: Get the assembly of a member from the member's type, not from the type of the value, because that is the type written in the metadata section of the object. 2003-12-23 Lluis Sanchez Gual * ObjectReader.cs: Field names can include the type name if the field belongs to a base type. Take this into account. 2003-11-26 Lluis Sanchez Gual * BinaryFormatter.cs: Added missing methods. 2003-11-20 Lluis Sanchez Gual * BinaryFormatter.cs, MessageFormatter.cs, ObjectReader.cs: Added support for TypeFilter property. 2003-11-16 Lluis Sanchez Gual * BinaryFormatter.cs, MessageFormatter.cs, ObjectWriter.cs: Implemented support for AssemblyFormat property. 2003-11-12 Lluis Sanchez Gual * ObjectReader.cs, ObjectWriter.cs: Changed some GetType calls to "is" checks. 2003-07-28 Duncan Mak * BinaryFormatter.cs (WriteBinaryHeader): changed from public to private. 2003-07-25 Lluis Sanchez Gual * MessageFormatter.cs: WriteMethodCall(): It must write all parameters, including ref and out. 2003-07-24 Lluis Sanchez Gual * ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970. 2003-07-17 Lluis Sanchez Gual * ObjectReader.cs: Keep MemberInfo members in type's metadata object, so it is 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. 2003-05-13 Lluis Sanchez Gual * ObjectReader.cs: Changed signature of ReadObjectGraph, so now it returns the deserialized object and the headers. * MessageFormatter.cs: The result of the call to the HeaderHandler delegate is now interpreted as the uri of the target object. This seems to be MS.NET behavior. * BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate, if provided. 2003-02-25 Lluis Sanchez Gual * BinaryFormatter.cs: Implemented support for binders. * MessageFormatter.cs: Implemented support for binders. * ObjectReader.cs: Implemented support for binders. 2003-02-04 Lluis Sanchez Gual * MessageFormatter.cs: Fixed bug in serialization of arguments. * ObjectReader.cs: Fixed bug causing array of structs to fail. 2003-02-11 Patrik Torstensson * ObjectReader.cs: Fixed root object bug causing object reader to return root object before fixup. Closes bug #37842. 2003-02-04 Lluis Sanchez Gual * MessageFormatter.cs: Corrected some bugs that affected serialization of exceptions 2003-02-04 Lluis Sanchez Gual * MessageFormatter.cs: Implemented serialization of message properties. 2003-01-24 Martin Baulig * ObjectReader.cs (ReadNextObject): Call RaiseDeserializationEvent() on the ObjectManager when we're done reading the whole graph. 2003-01-24 Lluis Sanchez Gual * ObjectWriter.cs, ObjectReader.cs: Added suport for headers. Corrected encoding of primitive types. Corrected a bug about zero-length arrays. * MessageFormatter.cs: Added. Implements serialization of messages. * BinaryFormatter.cs: Added serialization of messages. * BinaryCommon.cs: Added enum of codes of primitive types. 2003-01-17 Gonzalo Paniagua Javier * ObjectWriter.cs: make the exception message more useful. 2003-01-16 Lluis Sanchez Gual * BinaryFormatter.cs: implemented Serialize and Deserialize methods. * ObjectReader.cs: added. * ObjectWriter.cs: added. * BinaryCommon.cs. added. 2002-08-22 Nick Drochak * BinaryArrayTypeEnum.cs: Removed Non-existent enum (must have been from beta days) 2002-08-18 Dick Porter * BinaryFormatter.cs: Stubbed out