Commit Graph
70 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
Robert Jordan 7e0fe07971 Change eol-style to native.
svn path=/trunk/mcs/; revision=70681
2007-01-08 23:30:26 +00:00
Robert Jordan 39fbea3fba Normalize the line endings to CRLF.
svn path=/trunk/mcs/; revision=70679
2007-01-08 23:28:04 +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
Raja R Harinath 045919d65c Make line-endings uniform. Pick the one which changes the least number of lines. Set eol-style=native on files with LF-endings.
svn path=/trunk/mcs/; revision=64923
2006-09-05 11:24:50 +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 b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +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
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +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
Ben Maurer 2b4b651057 some warning silence
svn path=/trunk/mcs/; revision=37938
2004-12-19 18:21:41 +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
Marek Safar b20cf0cc02 removed unused variables
svn path=/trunk/mcs/; revision=36415
2004-11-23 06:40:55 +00:00
Raja R Harinath 97553bb62e cvs ignores, sorry about the spam
svn path=/trunk/mcs/; revision=33874
2004-09-14 09:59:51 +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
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +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