1 2005-05-26 Ben Maurer <bmaurer@ximian.com>
3 * CodeGenerator.cs: Move module creation to cctor to kill double
4 checked locking and typeof locking.
6 2005-05-17 Lluis Sanchez Gual <lluis@ximian.com>
8 * CodeGenerator.cs: Don't generate debug info here.
10 2005-05-09 Lluis Sanchez Gual <lluis@ximian.com>
13 * CodeGenerator.cs: No need to add the class for inherited fields,
14 since FieldInfo objects returned by the GetSerializableMembers
15 method will already include the class name if needed.
17 2005-03-23 Lluis Sanchez Gual <lluis@ximian.com>
19 * BinaryCommon.cs: Added helper method for swapping bytes.
21 * ObjectWriter.cs: Implemented serialization of arrays of primitive
22 types using Buffer.BlockCopy to create byffers of data that is written/
23 read in a single call. It's much faster now.
25 2005-03-01 Lluis Sanchez Gual <lluis@ximian.com>
27 * BinaryCommon.cs: Found the meaning of two unknown binary elements.
28 * CodeGenerator.cs: Derive generated classes from ClrTypeMetadata
29 instead of TypeMetadata. Added writeTypes parameter to WriteTypeData().
30 * ObjectWriter.cs: Use type and assembly names as keys for the type and
31 assembly caches. This is needed since ISerializable types can provide
32 fake type names (which are mapped to real types by a binder on
34 Implemented support for BinaryFormatter.TypeFormat.
35 * BinaryFormatter.cs, MessageFormatter.cs: Implemented support for
37 * ObjectReader.cs: Added support for objects serialized without
38 member type information. This fixes bug #73114.
39 If a binder return null, use the default way of loading the type.
41 2005-02-25 Lluis Sanchez Gual <lluis@ximian.com>
43 * ObjectReader.cs: In ReadArrayOfPrimitiveType, added a specific
44 read loop for each type. It's much faster and avoids value boxings.
46 2005-01-10 Lluis Sanchez Gual <lluis@ximian.com>
48 * BinaryCommon.cs: IntPtr is not a primitive type in the serialization
49 world. This fixes bug #70757.
51 2004-12-15 Lluis Sanchez Gual <lluis@ximian.com>
53 * ObjectReader.cs: Use GetField instead of GetMembers. Properties can't
54 be serialized, so it makes no sense to use GetMembers.
56 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
58 * CodeGenerator.cs: Call new DefineInternalDynamicAssembly method to prevent a race
59 condition in the setting of the CorlibInternal flag.
61 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
63 * CodeGenerator.cs: Mark the created assembly builder as internal.
65 2004-11-29 Lluis Sanchez Gual <lluis@ximian.com>
67 * CodeGenerator.cs: Addded EnumToUnderlying method to get the underlying
68 type of an enum. This fixes bug #69753.
70 2004-07-02 Lluis Sanchez Gual <lluis@ximian.com>
72 * BinaryCommon.cs: Added CheckSerializable method.
73 * ObjectWriter.cs: Check for type serializability even for members with
76 2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
78 * ObjectWriter.cs: reduce contention in GetObjectData.
80 2004-05-14 Vladimir Vukicevic <vladimir@pobox.com>
82 * binary_serialization_format.htm: renamed filename from having
83 spaces to _'s (checked with lluis)
85 2004-05-13 Lluis Sanchez Gual <lluis@ximian.com>
87 * ObjectWriter.cs: Fixed and Simplified WriteGenericArray and
88 WriteSingleDimensionArrayElements. This also fixes bug #58345.
90 2004-05-03 Lluis Sanchez Gual <lluis@ximian.com>
92 * MessageFormatter.cs: In the all-are-primitive case, serialize Args,
95 2004-04-28 Lluis Sanchez Gual <lluis@ximian.com>
97 * MessageFormatter.cs: Serialize Args, not OutArgs, like in MS.NET.
99 2004-04-26 Lluis Sanchez Gual <lluis@ximian.com>
101 * ObjectReader.cs, ObjectWriter.cs: FIXME cleaning.
103 2004-04-20 Lluis Sanchez Gual <lluis@ximian.com>
105 * CodeGenerator.cs, ObjectReader.cs, ObjectWriter.cs: Serialize decimals
106 as strings, like in MS.NET. This fixes bug #57186.
108 2004-02-23 Lluis Sanchez Gual <lluis@ximian.com>
110 * BinaryCommon.cs: Added UseReflectionSerialization property.
111 * CodeGenerator.cs, ObjectWriter.cs: When serializing the name of an
112 inherited field, prefix the name with the class name. This fixes #54439.
113 Moved check for reflection serialization variable to BinaryCommon.
115 2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
117 * ObjectWriter.cs: Factorized some serialization code in new classes, so it
118 is now possible to use fast IL generated classes that use direct access
119 to class fields instead of using reflection.
120 * CodeGenerator.cs: New file. Has several methods used by ObjectWriter to
121 generate serialization code.
123 2004-02-05 Lluis Sanchez Gual <lluis@ximian.com>
125 * ObjectWriter.cs: Get the assembly of a member from the member's type, not
126 from the type of the value, because that is the type written in the
127 metadata section of the object.
129 2003-12-23 Lluis Sanchez Gual <lluis@ximian.com>
131 * ObjectReader.cs: Field names can include the type name if the field
132 belongs to a base type. Take this into account.
134 2003-11-26 Lluis Sanchez Gual <lluis@ximian.com>
136 * BinaryFormatter.cs: Added missing methods.
138 2003-11-20 Lluis Sanchez Gual <lluis@ximian.com>
140 * BinaryFormatter.cs, MessageFormatter.cs, ObjectReader.cs: Added support
141 for TypeFilter property.
143 2003-11-16 Lluis Sanchez Gual <lluis@ximian.com>
145 * BinaryFormatter.cs, MessageFormatter.cs, ObjectWriter.cs:
146 Implemented support for AssemblyFormat property.
148 2003-11-12 Lluis Sanchez Gual <lluis@ximian.com>
150 * ObjectReader.cs, ObjectWriter.cs: Changed some GetType calls to "is" checks.
152 2003-07-28 Duncan Mak <duncan@ximian.com>
154 * BinaryFormatter.cs (WriteBinaryHeader): changed from public to
157 2003-07-25 Lluis Sanchez Gual <lluis@ximian.com>
159 * MessageFormatter.cs: WriteMethodCall(): It must write all parameters,
160 including ref and out.
162 2003-07-24 Lluis Sanchez Gual <lluis@ximian.com>
164 * ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970.
166 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
168 * ObjectReader.cs: Keep MemberInfo members in type's metadata object, so it is
169 not necessary to query them for every object.
170 * ObjectWriter.cs: If the value being serialized is a value type (not boxed)
171 then there is no need to register it in the ObjectIDGenerator, because it is
172 not possible to have two references to the same value type object.
174 2003-05-13 Lluis Sanchez Gual <lluis@ideary.com>
176 * ObjectReader.cs: Changed signature of ReadObjectGraph, so now it returns the
177 deserialized object and the headers.
178 * MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
179 now interpreted as the uri of the target object. This seems to be MS.NET
181 * BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
184 2003-02-25 Lluis Sanchez Gual <lluis@ideary.com>
186 * BinaryFormatter.cs: Implemented support for binders.
187 * MessageFormatter.cs: Implemented support for binders.
188 * ObjectReader.cs: Implemented support for binders.
190 2003-02-04 Lluis Sanchez Gual <lluis@ideary.com>
192 * MessageFormatter.cs: Fixed bug in serialization of arguments.
193 * ObjectReader.cs: Fixed bug causing array of structs to fail.
195 2003-02-11 Patrik Torstensson
197 * ObjectReader.cs: Fixed root object bug causing object reader to return root object
198 before fixup. Closes bug #37842.
200 2003-02-04 Lluis Sanchez Gual <lluis@ideary.com>
202 * MessageFormatter.cs: Corrected some bugs that affected serialization of exceptions
204 2003-02-04 Lluis Sanchez Gual <lluis@ideary.com>
206 * MessageFormatter.cs: Implemented serialization of message properties.
208 2003-01-24 Martin Baulig <martin@ximian.com>
210 * ObjectReader.cs (ReadNextObject): Call
211 RaiseDeserializationEvent() on the ObjectManager when we're done
212 reading the whole graph.
214 2003-01-24 Lluis Sanchez Gual <lluis@ideary.com>
216 * ObjectWriter.cs, ObjectReader.cs: Added suport for headers.
217 Corrected encoding of primitive types. Corrected a bug about zero-length arrays.
218 * MessageFormatter.cs: Added. Implements serialization of messages.
219 * BinaryFormatter.cs: Added serialization of messages.
220 * BinaryCommon.cs: Added enum of codes of primitive types.
222 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
224 * ObjectWriter.cs: make the exception message more useful.
226 2003-01-16 Lluis Sanchez Gual <lluis@ideary.com>
228 * BinaryFormatter.cs: implemented Serialize and Deserialize methods.
229 * ObjectReader.cs: added.
230 * ObjectWriter.cs: added.
231 * BinaryCommon.cs. added.
233 2002-08-22 Nick Drochak <ndrochak@gol.com>
235 * BinaryArrayTypeEnum.cs: Removed Non-existent enum (must have been
238 2002-08-18 Dick Porter <dick@ximian.com>
240 * BinaryFormatter.cs: Stubbed out