814a129999b614e6aa1b5962dbab232cc66e1800
[mono.git] / mcs / class / corlib / System.Runtime.Serialization.Formatters.Binary / ChangeLog
1 2008-06-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2
3         * BinaryFormatter.cs: Fix parameter name
4
5 2008-04-26  Jb Evain  <jbevain@novell.com>
6
7         * CodeGenerator.cs: replace usage of new Type [0] by
8         Type.EmptyTypes. Found with Gendarme.
9
10 2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>
11
12         * BinaryFormatter.cs: Fix parameter names
13
14 2007-08-25  Robert Jordan  <robertj@gmx.net>
15
16         * ObjectReader.cs, ObjectWriter.cs, CodeGenerator.cs:
17         Use DateTime.From/ToBinary. Fixes #82400.
18
19 2007-08-25  Alan McGovern  <amcgovern@novell.com>
20
21         * ObjectReader.cs, ObjectWriter.cs, CodeGenerator.cs:
22         Reverted fix for #82400.
23
24 2007-08-25  Robert Jordan  <robertj@gmx.net>
25
26         * ObjectReader.cs, ObjectWriter.cs, CodeGenerator.cs:
27         Use DateTime.From/ToBinary. Fixes #82400.
28
29 2007-08-23  Robert Jordan  <robertj@gmx.net>
30
31         * ObjectReader.cs, ObjectReader.cs: Map between System.MonoType[] and
32         MS.NET's System.RuntimeType[].
33         
34         * ObjectReader.cs (ReadType): When a type couldn't be found, emit
35         a more useful exception.
36
37 2007-05-03  Dick Porter  <dick@ximian.com>
38
39         * BinaryFormatter.cs: Update to 2.0 profile
40
41 2006-12-25  Robert Jordan  <robertj@gmx.net>
42
43         * binary_serialization_format.htm: Update the NET_2_0 format.
44         * BinaryCommon.cs: MethodFlags is actually an int32. Add NET_2_0 flags.
45         * MessageFormatter.cs: Add support for generic method arguments.
46         * ObjectWriter.cs, ObjectReader.cs: Map between System.MonoType and
47         MS.NET's System.RuntimeType.
48
49 2006-12-01  Lluis Sanchez Gual <lluis@novell.com> 
50
51         * MessageFormatter.cs: Include the logical context in the message when
52           throwing an exception. Fixes a compatibility issue with MS.NET.
53
54 2006-10-29  Robert Jordan  <robertj@gmx.net>
55
56         * ObjectWriter.cs, ObjectReader [NET_2_0]:
57         Use the SerializationObjectManager.
58
59 2006-09-05  Raja R Harinath  <rharinath@novell.com>
60
61         Fix #79159
62         * ObjectWriter.cs (WritePrimitiveTypeArray) [NET_2_0]: Encode the
63         'Kind' of each DateTime.
64         * ObjectReader.cs (ReadArrayOfPrimitiveType) [NET_2_0]: Decode the
65         'Kind' of each DateTime.
66
67 2005-12-07  Sebastien Pouliot  <sebastien@ximian.com>
68
69         * BinaryFormatter.cs: Implemented UnsafeDeserialize and 
70         UnsafeDeserializeMethodResponse methods. Fixes last TODO in this
71         namespace (for both 1.1 and 2.0 profiles).
72
73 2005-12-07  Lluis Sanchez Gual  <lluis@ximian.com>
74
75         * ObjectReader.cs: Added null check in GetDeserializationType.
76         Patch by Ben Maurer. Fixes bug #69666.
77
78 2005-12-01  Sebastien Pouliot  <sebastien@ximian.com>
79
80         * BinaryFormatter.cs: Added a demand for SerializationFormatter on 
81         Serialize method (to make some CAS test work correctly).
82
83 2005-05-26  Ben Maurer  <bmaurer@ximian.com>
84
85         * CodeGenerator.cs: Move module creation to cctor to kill double
86         checked locking and typeof locking.
87
88 2005-05-17  Lluis Sanchez Gual  <lluis@ximian.com>
89
90         * CodeGenerator.cs: Don't generate debug info here.
91
92 2005-05-09  Lluis Sanchez Gual  <lluis@ximian.com>
93
94         * ObjectWriter.cs:
95         * CodeGenerator.cs: No need to add the class for inherited fields,
96         since FieldInfo objects returned by the GetSerializableMembers
97         method will already include the class name if needed.
98
99 2005-03-23  Lluis Sanchez Gual  <lluis@ximian.com>
100
101         * BinaryCommon.cs: Added helper method for swapping bytes.
102         * ObjectReader.cs:
103         * ObjectWriter.cs: Implemented serialization of arrays of primitive
104         types using Buffer.BlockCopy to create byffers of data that is written/
105         read in a single call. It's much faster now.
106
107 2005-03-01  Lluis Sanchez Gual  <lluis@ximian.com>
108
109         * BinaryCommon.cs: Found the meaning of two unknown binary elements.
110         * CodeGenerator.cs: Derive generated classes from ClrTypeMetadata
111         instead of TypeMetadata. Added writeTypes parameter to WriteTypeData().
112         * ObjectWriter.cs: Use type and assembly names as keys for the type and
113         assembly caches. This is needed since ISerializable types can provide
114         fake type names (which are mapped to real types by a binder on
115         deserialization).
116         Implemented support for BinaryFormatter.TypeFormat.
117         * BinaryFormatter.cs, MessageFormatter.cs: Implemented support for
118         TypeFormat property.
119         * ObjectReader.cs: Added support for objects serialized without
120         member type information. This fixes bug #73114.
121         If a binder return null, use the default way of loading the type.
122
123 2005-02-25  Lluis Sanchez Gual  <lluis@ximian.com>
124
125         * ObjectReader.cs: In ReadArrayOfPrimitiveType, added a specific
126         read loop for each type. It's much faster and avoids value boxings.
127
128 2005-01-10  Lluis Sanchez Gual  <lluis@ximian.com>
129
130         * BinaryCommon.cs: IntPtr is not a primitive type in the serialization
131         world. This fixes bug #70757.
132
133 2004-12-15  Lluis Sanchez Gual  <lluis@ximian.com>
134
135         * ObjectReader.cs: Use GetField instead of GetMembers. Properties can't
136         be serialized, so it makes no sense to use GetMembers.
137
138 2004-12-08  Zoltan Varga  <vargaz@freemail.hu>
139
140         * CodeGenerator.cs: Call new DefineInternalDynamicAssembly method to prevent a race
141         condition in the setting of the CorlibInternal flag.
142
143 2004-12-06  Zoltan Varga  <vargaz@freemail.hu>
144
145         * CodeGenerator.cs: Mark the created assembly builder as internal.
146
147 2004-11-29  Lluis Sanchez Gual  <lluis@ximian.com>
148
149         * CodeGenerator.cs: Addded EnumToUnderlying method to get the underlying
150         type of an enum. This fixes bug #69753.
151
152 2004-07-02  Lluis Sanchez Gual  <lluis@ximian.com>
153
154         * BinaryCommon.cs: Added CheckSerializable method.
155         * ObjectWriter.cs: Check for type serializability even for members with
156           null values.
157         
158 2004-05-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
159
160         * ObjectWriter.cs: reduce contention in GetObjectData.
161
162 2004-05-14  Vladimir Vukicevic  <vladimir@pobox.com>
163
164         * binary_serialization_format.htm: renamed filename from having
165           spaces to _'s (checked with lluis)
166
167 2004-05-13  Lluis Sanchez Gual  <lluis@ximian.com>
168
169         * ObjectWriter.cs: Fixed and Simplified WriteGenericArray and 
170           WriteSingleDimensionArrayElements. This also fixes bug #58345.
171
172 2004-05-03  Lluis Sanchez Gual  <lluis@ximian.com>
173
174         * MessageFormatter.cs: In the all-are-primitive case, serialize Args, 
175           not OutArgs.
176
177 2004-04-28  Lluis Sanchez Gual <lluis@ximian.com>
178
179         * MessageFormatter.cs: Serialize Args, not OutArgs, like in MS.NET.
180
181 2004-04-26  Lluis Sanchez Gual <lluis@ximian.com>
182
183         * ObjectReader.cs, ObjectWriter.cs: FIXME cleaning.
184
185 2004-04-20  Lluis Sanchez Gual <lluis@ximian.com>
186
187         * CodeGenerator.cs, ObjectReader.cs, ObjectWriter.cs: Serialize decimals
188           as strings, like in MS.NET. This fixes bug #57186.
189
190 2004-02-23  Lluis Sanchez Gual <lluis@ximian.com>
191
192         * BinaryCommon.cs: Added UseReflectionSerialization property.
193         * CodeGenerator.cs, ObjectWriter.cs: When serializing the name of an 
194           inherited field, prefix the name with the class name. This fixes #54439.
195           Moved check for reflection serialization variable to BinaryCommon.
196         
197 2004-02-17  Lluis Sanchez Gual <lluis@ximian.com>
198
199         * ObjectWriter.cs: Factorized some serialization code in new classes, so it
200           is now possible to use fast IL generated classes that use direct access
201           to class fields instead of using reflection.
202         * CodeGenerator.cs: New file. Has several methods used by ObjectWriter to 
203           generate serialization code.
204
205 2004-02-05  Lluis Sanchez Gual <lluis@ximian.com>
206
207         * ObjectWriter.cs: Get the assembly of a member from the member's type, not
208           from the type of the value, because that is the type written in the
209           metadata section of the object.
210
211 2003-12-23  Lluis Sanchez Gual <lluis@ximian.com>
212
213         * ObjectReader.cs: Field names can include the type name if the field
214           belongs to a base type. Take this into account.
215
216 2003-11-26  Lluis Sanchez Gual <lluis@ximian.com>
217
218         * BinaryFormatter.cs: Added missing methods.
219
220 2003-11-20  Lluis Sanchez Gual <lluis@ximian.com>
221
222         * BinaryFormatter.cs, MessageFormatter.cs, ObjectReader.cs: Added support
223           for TypeFilter property.
224
225 2003-11-16  Lluis Sanchez Gual <lluis@ximian.com>
226
227         * BinaryFormatter.cs, MessageFormatter.cs, ObjectWriter.cs: 
228           Implemented support for AssemblyFormat property.
229
230 2003-11-12  Lluis Sanchez Gual <lluis@ximian.com>
231
232         * ObjectReader.cs, ObjectWriter.cs: Changed some GetType calls to "is" checks.
233
234 2003-07-28  Duncan Mak  <duncan@ximian.com>
235
236         * BinaryFormatter.cs (WriteBinaryHeader): changed from public to
237         private.
238
239 2003-07-25  Lluis Sanchez Gual <lluis@ximian.com>
240
241     * MessageFormatter.cs: WriteMethodCall(): It must write all parameters,
242       including ref and out.
243
244 2003-07-24  Lluis Sanchez Gual <lluis@ximian.com>
245
246     * ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970.
247
248 2003-07-17  Lluis Sanchez Gual <lluis@ximian.com>
249
250     * ObjectReader.cs: Keep MemberInfo members in type's metadata object, so it is
251       not necessary to query them for every object.
252     * ObjectWriter.cs: If the value being serialized is a value type (not boxed)
253       then there is no need to register it in the ObjectIDGenerator, because it is
254       not possible to have two references to the same value type object.
255
256 2003-05-13  Lluis Sanchez Gual <lluis@ideary.com>
257
258     * ObjectReader.cs: Changed signature of ReadObjectGraph, so now it returns the
259       deserialized object and the headers.
260     * MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
261       now interpreted as the uri of the target object. This seems to be MS.NET
262       behavior.
263         * BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
264           if provided.
265
266 2003-02-25  Lluis Sanchez Gual <lluis@ideary.com>
267
268         * BinaryFormatter.cs: Implemented support for binders.
269     * MessageFormatter.cs: Implemented support for binders.
270     * ObjectReader.cs: Implemented support for binders.
271
272 2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>
273
274     * MessageFormatter.cs: Fixed bug in serialization of arguments.
275     * ObjectReader.cs: Fixed bug causing array of structs to fail.
276
277 2003-02-11  Patrik Torstensson
278
279     * ObjectReader.cs: Fixed root object bug causing object reader to return root object 
280           before fixup. Closes bug #37842.
281
282 2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>
283
284     * MessageFormatter.cs: Corrected some bugs that affected serialization of exceptions
285
286 2003-02-04  Lluis Sanchez Gual <lluis@ideary.com>
287
288     * MessageFormatter.cs: Implemented serialization of message properties.
289
290 2003-01-24  Martin Baulig  <martin@ximian.com>
291
292         * ObjectReader.cs (ReadNextObject): Call
293         RaiseDeserializationEvent() on the ObjectManager when we're done
294         reading the whole graph.
295
296 2003-01-24  Lluis Sanchez Gual <lluis@ideary.com>
297
298     * ObjectWriter.cs, ObjectReader.cs: Added suport for headers. 
299       Corrected encoding of primitive types. Corrected a bug about zero-length arrays. 
300     * MessageFormatter.cs: Added. Implements serialization of messages.
301     * BinaryFormatter.cs: Added serialization of messages.
302     * BinaryCommon.cs: Added enum of codes of primitive types.
303
304 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
305
306         * ObjectWriter.cs: make the exception message more useful.
307
308 2003-01-16  Lluis Sanchez Gual <lluis@ideary.com>
309
310     * BinaryFormatter.cs: implemented Serialize and Deserialize methods.
311     * ObjectReader.cs: added.
312     * ObjectWriter.cs: added.
313     * BinaryCommon.cs. added.
314
315 2002-08-22  Nick Drochak  <ndrochak@gol.com>
316
317         * BinaryArrayTypeEnum.cs: Removed Non-existent enum (must have been
318         from beta days)
319
320 2002-08-18  Dick Porter  <dick@ximian.com>
321
322         * BinaryFormatter.cs: Stubbed out