Commit Graph
56 Commits
Author SHA1 Message Date
Robert Jordan 3a9042c6e5 Resurrect r84839
svn path=/trunk/mcs/; revision=84841
2007-08-25 06:25:01 +00:00
Alan McGovern 4ab5568a5a reverted changes for datetime serialization
svn path=/trunk/mcs/; revision=84840
2007-08-25 02:32:55 +00:00
Robert Jordan 5ef01bea4b In System:
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-25 00:46:18 +00:00
Robert Jordan c76ea13748 In .:
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
2007-08-23 18:40:17 +00:00
Dick Porter ed0e0a5242 2007-05-03 Dick Porter <[email protected]>
* ProxyAttribute.cs: 
	* RealProxy.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* ITrackingHandler.cs: 
	* EnterpriseServicesHelper.cs: 
	* TrackingServices.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* IFieldInfo.cs: 
	* ISoapMessage.cs: 
	* InternalRM.cs: 
	* InternalST.cs: 
	* ServerFault.cs: 
	* SoapFault.cs: 
	* SoapMessage.cs: 
	* FormatterAssemblyStyle.cs: 
	* FormatterTypeStyle.cs: 
	* TypeFilterLevel.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* BinaryFormatter.cs: Update to 2.0 profile

2007-05-03  Dick Porter  <[email protected]>

	* Encoding.cs: 
	* UnicodeEncoding.cs: 
	* UTF7Encoding.cs: Update to 2.0 profile



svn path=/trunk/mcs/; revision=76625
2007-05-03 16:21:18 +00:00
Robert Jordan bb653a80a8 In System.Runtime.Remoting.Messaging:
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
2007-01-08 23:55:18 +00:00
Lluis Sanchez 7480608ca5 * MessageFormatter.cs: Include the logical context in the message when
throwing an exception. Fixes a compatibility issue with MS.NET.

svn path=/trunk/mcs/; revision=68828
2006-12-01 13:31:21 +00:00
Robert Jordan 83c1b15790 2006-10-29 Robert Jordan <[email protected]>
* ObjectWriter.cs, ObjectReader [NET_2_0]:
	Use the SerializationObjectManager.


svn path=/trunk/mcs/; revision=67110
2006-10-29 20:37:35 +00:00
Raja R Harinath f0af503273 In System.Runtime.Serialization.Formatters.Binary:
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
2006-09-05 12:10:14 +00:00
Sebastien Pouliot 4281ad9b50 2005-12-07 Sebastien Pouliot <[email protected]>
* BinaryFormatter.cs: Implemented UnsafeDeserialize and 
	UnsafeDeserializeMethodResponse methods. Fixes last TODO in this
	namespace (for both 1.1 and 2.0 profiles).


svn path=/trunk/mcs/; revision=54045
2005-12-07 16:29:19 +00:00
Lluis Sanchez 11ebc5207d 2005-12-07 Lluis Sanchez Gual <[email protected]>
* ObjectReader.cs: Added null check in GetDeserializationType.
	Patch by Ben Maurer. Fixes bug #69666.


svn path=/trunk/mcs/; revision=54030
2005-12-07 12:47:08 +00:00
Sebastien Pouliot fcdf35c525 2005-12-01 Sebastien Pouliot <[email protected]>
* BinaryFormatter.cs: Added a demand for SerializationFormatter on 
	Serialize method (to make some CAS test work correctly).


svn path=/trunk/mcs/; revision=53770
2005-12-01 15:49:52 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer a0b608b4b6 2005-05-26 Ben Maurer <[email protected]>
* CodeGenerator.cs: Move module creation to cctor to kill double
	checked locking and typeof locking.


svn path=/trunk/mcs/; revision=45076
2005-05-26 20:19:52 +00:00
Lluis Sanchez 5cf54a0a21 2005-05-17 Lluis Sanchez Gual <[email protected]>
* CodeGenerator.cs: Don't generate debug info here.


svn path=/trunk/mcs/; revision=44619
2005-05-17 10:13:19 +00:00
Lluis Sanchez 5d88607727 2005-05-09 Lluis Sanchez Gual <[email protected]>
* 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
2005-05-09 11:06:06 +00:00
Lluis Sanchez 159038b6fa 2005-03-23 Lluis Sanchez Gual <[email protected]>
* 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
2005-03-23 19:11:05 +00:00
Lluis Sanchez 7838d80521 2005-03-01 Lluis Sanchez Gual <[email protected]>
* 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
2005-03-03 17:05:26 +00:00
Lluis Sanchez 9d7e94c4dc 2005-02-25 Lluis Sanchez Gual <[email protected]>
* ObjectReader.cs: In ReadArrayOfPrimitiveType, added a specific
	read loop for each type. It's much faster and avoids value boxings.


svn path=/trunk/mcs/; revision=41196
2005-02-25 13:09:46 +00:00
Lluis Sanchez 254463f3c9 2005-01-10 Lluis Sanchez Gual <[email protected]>
* BinaryCommon.cs: IntPtr is not a primitive type in the serialization
	world. This fixes bug #70757.


svn path=/trunk/mcs/; revision=38626
2005-01-10 16:03:43 +00:00
Lluis Sanchez 5fffb9a4fb 2004-12-15 Lluis Sanchez Gual <[email protected]>
* ObjectReader.cs: Use GetField instead of GetMembers. Properties can't
	be serialized, so it makes no sense to use GetMembers.


svn path=/trunk/mcs/; revision=37783
2004-12-15 14:04:20 +00:00
Zoltan Varga 9e3370d335 2004-12-08 Zoltan Varga <[email protected]>
* CodeGenerator.cs: Call new DefineInternalDynamicAssembly method to prevent a race
	condition in the setting of the CorlibInternal flag.

svn path=/trunk/mcs/; revision=37354
2004-12-08 00:31:38 +00:00
Zoltan Varga 5b717e8aa6 2004-12-06 Zoltan Varga <[email protected]>
* CodeGenerator.cs: Mark the created assembly builder as internal.

svn path=/trunk/mcs/; revision=37198
2004-12-06 16:31:54 +00:00
Lluis Sanchez 05dca65e99 2004-11-29 Lluis Sanchez Gual <[email protected]>
* CodeGenerator.cs: Addded EnumToUnderlying method to get the underlying
	type of an enum. This fixes bug #69753.


svn path=/trunk/mcs/; revision=36765
2004-11-29 09:42:33 +00:00
Lluis Sanchez be62236ebf * BinaryCommon.cs: Added CheckSerializable method.
* ObjectWriter.cs: Check for type serializability even for members with
	  null values.

svn path=/trunk/mcs/; revision=30684
2004-07-02 15:25:27 +00:00
Gonzalo Paniagua Javier 560e4580b9 2004-05-29 Gonzalo Paniagua Javier <[email protected]>
* ObjectWriter.cs: reduce contention in GetObjectData.

svn path=/trunk/mcs/; revision=28439
2004-05-29 14:23:10 +00:00
Vladimir Vukicevic 8981619146 * binary_serialization_format.htm: renamed filename from having
spaces to _'s (checked with lluis)

svn path=/trunk/mcs/; revision=27351
2004-05-14 07:57:21 +00:00
Lluis Sanchez 9e8bde8303 * ObjectWriter.cs: Fixed and Simplified WriteGenericArray and
WriteSingleDimensionArrayElements. This also fixes bug #58345.

svn path=/trunk/mcs/; revision=27284
2004-05-13 16:05:38 +00:00
Lluis Sanchez 3d5583bd64 * MessageFormatter.cs: In the all-are-primitive case, serialize Args,
not OutArgs.

svn path=/trunk/mcs/; revision=26582
2004-05-03 11:47:27 +00:00
Lluis Sanchez 6d68a94581 * MessageFormatter.cs: Serialize Args, not OutArgs, like in MS.NET.
svn path=/trunk/mcs/; revision=26187
2004-04-28 18:41:10 +00:00
Lluis Sanchez 3ea9677f51 * ObjectReader.cs, ObjectWriter.cs: FIXME cleaning.
svn path=/trunk/mcs/; revision=26011
2004-04-26 18:50:16 +00:00
Lluis Sanchez d1948fa79a * CodeGenerator.cs, ObjectReader.cs, ObjectWriter.cs: Serialize decimals
as strings, like in MS.NET. This fixes bug #57186.

svn path=/trunk/mcs/; revision=25740
2004-04-20 18:29:15 +00:00
Lluis Sanchez 66d1ec3032 * 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.

svn path=/trunk/mcs/; revision=23358
2004-02-23 13:21:52 +00:00
Lluis Sanchez 560f947670 * 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.

svn path=/trunk/mcs/; revision=23171
2004-02-17 16:16:49 +00:00
Lluis Sanchez 74e64372a5 * 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.

svn path=/trunk/mcs/; revision=22778
2004-02-05 00:36:32 +00:00
Lluis Sanchez d9513ee597 * ObjectReader.cs: Field names can include the type name if the field belongs to a base type. Take this into account.
svn path=/trunk/mcs/; revision=21453
2003-12-23 15:47:27 +00:00
Lluis Sanchez a5dd638987 * BinaryFormatter.cs: Added missing methods.
svn path=/trunk/mcs/; revision=20470
2003-11-26 15:17:12 +00:00
Lluis Sanchez f22dc5eae7 * BinaryFormatter.cs, MessageFormatter.cs, ObjectReader.cs: Added support
for TypeFilter property.

svn path=/trunk/mcs/; revision=20312
2003-11-21 16:57:11 +00:00
Lluis Sanchez 005d5be306 * BinaryFormatter.cs, MessageFormatter.cs, ObjectWriter.cs:
Implemented support for AssemblyFormat property.

svn path=/trunk/mcs/; revision=20085
2003-11-16 22:27:29 +00:00
Lluis Sanchez 4680ad0fa4 ObjectReader.cs, ObjectWriter.cs: Changed some GetType calls to "is" checks.
svn path=/trunk/mcs/; revision=19892
2003-11-12 15:54:08 +00:00
Duncan Mak 4bcbe166d0 * TransportHeaders.cs: Added Serializable attribute.
* ClientChannelSinkStack.cs: Added no-param constructor.

* ContextAttribute.cs: Removed constructor.

* RealProxy.cs (GetProxiedType): Removed 'virtual' keyword.

* BinaryFormatter.cs (WriteBinaryHeader): changed from public to
private.

* Formatter.cs (WriteSByte): Added CLSCompliant attribute.

svn path=/trunk/mcs/; revision=16785
2003-07-28 19:48:38 +00:00
Lluis Sanchez 439574b405 * MessageFormatter.cs: WriteMethodCall(): It must write all parameters,
including ref and out.

svn path=/trunk/mcs/; revision=16661
2003-07-25 12:22:01 +00:00
Lluis Sanchez e271cc193c * ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970.
svn path=/trunk/mcs/; revision=16602
2003-07-24 12:27:53 +00:00
Lluis Sanchez 82fbf05daa * 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.

svn path=/trunk/mcs/; revision=16342
2003-07-17 12:12:26 +00:00
Lluis Sanchez 3989b96cc8 * 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.

svn path=/trunk/mcs/; revision=14559
2003-05-13 20:55:05 +00:00
Lluis Sanchez 3accd72948 * BinaryFormatter.cs: Implemented support for binders.
* MessageFormatter.cs: Implemented support for binders.
    * ObjectReader.cs: Implemented support for binders.

svn path=/trunk/mcs/; revision=11968
2003-02-25 20:31:53 +00:00
Lluis Sanchez 032fcf581e * MessageFormatter.cs: Fixed bug in serialization of arguments.
* ObjectReader.cs: Fixed bug causing array of structs to fail.

svn path=/trunk/mcs/; revision=11661
2003-02-18 00:51:52 +00:00
Patrik Torstensson caf229d10d 2003-02-11 Patrik Torstensson
* ObjectReader.cs: Fixed root object bug causing object reader to return root object
	  before fixup. Closes bug #37842.

svn path=/trunk/mcs/; revision=11481
2003-02-11 12:43:46 +00:00
Lluis Sanchez e1a95712c4 MessageFormatter.cs: Corrected some bugs that affected serialization of exceptions
svn path=/trunk/mcs/; revision=11222
2003-02-05 01:21:43 +00:00
Lluis Sanchez 1a0f25be2f MessageFormatter.cs: Implemented serialization of message properties.
svn path=/trunk/mcs/; revision=11200
2003-02-04 12:55:02 +00:00