Commit Graph
65 Commits
Author SHA1 Message Date
Lluis Sanchez 1fbe57abf3 2006-12-18 Lluis Sanchez Gual <[email protected]>
* FormatterServices.cs: In GetFields, avoid creating a field
	  clone in some cases where it's not really necessary.


svn path=/trunk/mcs/; revision=69682
2006-12-18 20:06:01 +00:00
Miguel de Icaza 0b5acec953 Add ChangeLog
svn path=/trunk/mcs/; revision=67796
2006-11-13 21:38:25 +00:00
Robert Jordan 773264de94 2006-11-13 Jensen Somers <[email protected]>
* Removed [Serializable] from OnDeserializedAttribute,
	OnDeserializingAttribute, OnSerializedAttribute,
	OnSerializingAttribute.


svn path=/trunk/mcs/; revision=67781
2006-11-13 19:14:57 +00:00
Miguel de Icaza 45a6a2e5c8 2006-11-10 Jensen Somers <[email protected]>
* Added ComVisibleAttribute in the ISerializable,
        ISerializationSurrogate and ISurrogateSelector interface.
        * Added the sealed keyword to the OnDeserializedAttribute,
        OnDeserializingAttribute, OnSerializedAttribute,
        OnSerializingAttribute and OptionalFieldAttribute class.


svn path=/trunk/mcs/; revision=67733
2006-11-12 12:19:01 +00:00
Robert Jordan 9cadcf198f 2006-10-30 Robert Jordan <[email protected]>
* Apply ComVisibleAttribute.


svn path=/trunk/mcs/; revision=67118
2006-10-30 00:35:56 +00:00
Robert Jordan 6c3340f05c 2006-10-29 Robert Jordan <[email protected]>
* ObjectManager.cs: Add NET_2_0 serialization callbacks.


svn path=/trunk/mcs/; revision=67107
2006-10-29 20:30:10 +00:00
Robert Jordan c0ca6520d9 2006-10-29 Robert Jordan <[email protected]>
* SerializationObjectManager.cs,
	SerializationCallbacks.cs: Add support for NET_2_0 serialization
	events. See bug #78594.


svn path=/trunk/mcs/; revision=67105
2006-10-29 20:22:36 +00:00
Lluis Sanchez 0d899fd4d7 2006-08-06 Lluis Sanchez Gual <[email protected]>
* ObjectManager.cs: Add support for nested IObjectReference.
	Fixes bug #78749.


svn path=/trunk/mcs/; revision=64997
2006-09-06 12:01:03 +00:00
Sebastien Pouliot 1f4a7ed63b 2006-07-31 Sebastien Pouliot <[email protected]>
* ObjectIDGenerator.cs: Fix ArgumentNullException parameter.


svn path=/trunk/mcs/; revision=63175
2006-07-31 13:04:56 +00:00
Miguel de Icaza ed62fd93e4 2006-06-04 Miguel de Icaza <[email protected]>
* OptionalFieldAttribute.cs, OnSerializedAttribute.cs,
	OnSerializingAttribute.cs, OnDeserializedAttribute.cs,
	OnDeserializingAttribute.cs: Added a few attributes for the
	version tolerant serialization.

svn path=/trunk/mcs/; revision=61447
2006-06-05 00:54:11 +00:00
Raja R Harinath cad45543c8 * ObjectManager.cs (ObjectRecord.IsInstanceReady): Fix regression
introduced in previous patch.  See the re-opened bug #76931.

svn path=/trunk/mcs/; revision=55052
2006-01-04 15:18:39 +00:00
Martin Baulig 4c590bcbe3 2005-12-15 Martin Baulig <[email protected]>
* ObjectManager.cs: When deserializing an object that has a
	surrogate, actually check the return value of
	ISerializationSurrogate.SetObjectData(); fixes #76931.


svn path=/trunk/mcs/; revision=54464
2005-12-15 15:39:31 +00:00
Lluis Sanchez 0aef6f3a4d 2005-10-03 Lluis Sanchez Gual <[email protected]>
* ObjectIDGenerator.cs: Use custom comparer instead of an instance
	wrapper. Closes bug #76017.


svn path=/trunk/mcs/; revision=51116
2005-10-03 12:45:07 +00:00
Lluis Sanchez 428d514dc2 2005-06-13 Lluis Sanchez Gual <[email protected]>
* Formatter.cs: Properly initialize protected fields. Fixes bug #75233. 


svn path=/trunk/mcs/; revision=45874
2005-06-13 14:33:08 +00:00
Lluis Sanchez 9b2040cfff 2005-05-17 Lluis Sanchez Gual <[email protected]>
* SerializationInfo.cs: Use IsInstanceOfType instead of IsAssignableFrom
	since GetType() may not return the correct type if the object is
	a remoting proxy.


svn path=/trunk/mcs/; revision=44635
2005-05-17 17:44:30 +00:00
Lluis Sanchez ca53a50472 2005-05-09 Lluis Sanchez Gual <[email protected]>
* FormatterServices.cs: In GetSerializableMembers, private fields
	from base classes must include the class name in the field name.
	In this case, it now creates a clone of the field with the
	modified name. This patch together with r44260 fixes bug #74760.


svn path=/trunk/mcs/; revision=44267
2005-05-09 11:04:25 +00:00
Lluis Sanchez 7519af4c16 2004-12-09 Lluis Sanchez Gual <[email protected]>
* ObjectManager.cs: When deserializing an object that implements
	ISerializable, check if a surrogate	exists for that object, before
	trying to deserialize it as ISerializable. This fixes bug #70104.


svn path=/trunk/mcs/; revision=37479
2004-12-09 11:27:17 +00:00
Gert Driesen 7f2ede041e * ObjectIDGenerator.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29639
2004-06-15 18:42:15 +00:00
Duncan Mak 7e1ce1a201 (RegisterObject): Add checks for ArgumentNullException as well.
r=lluis

svn path=/trunk/mcs/; revision=29138
2004-06-09 22:21:22 +00:00
Duncan Mak 70b35ad1a5 * SerializationInfoEnumerator.cs: Instead of using
IDictionaryEnumerator from a Hashtable, use a normal IEnumerator
from the newly added ArrayList in SerializationInfo.

* SerializationInfo.cs: Added an extra ArrayList so that we can
keep the SerializationEntrys added in the order.
(SerializationInfo, AddValue): Throw ArgumentNullException
correctly.

svn path=/trunk/mcs/; revision=29118
2004-06-09 16:26:08 +00:00
Duncan Mak 042a130ac1 (RegisterObject): Throw ArgumentOutOfRangeException if the objectID
parameter is less than or equal to zero. This check was missing from
this particular overload.

svn path=/trunk/mcs/; revision=29053
2004-06-08 18:39:04 +00:00
Marek Safar 17b718a094 Removed useless [CLSCompliant(false)]
svn path=/trunk/mcs/; revision=27314
2004-05-13 22:28:44 +00:00
Lluis Sanchez a6bf88dba5 * FormatterServices.cs: Added CheckTypeSecurity() and
GetSafeUninitializedObject().

svn path=/trunk/mcs/; revision=20311
2003-11-21 16:54:15 +00:00
Andreas N c7cb04a69d 2003-11-18 Andreas Nahr <[email protected]>
* ObjectManager.cs: Fixed header, internalized enum
	* Formatter.cs: Implemented

svn path=/trunk/mcs/; revision=20186
2003-11-18 20:03:41 +00:00
Lluis Sanchez a05abf88e8 * FormatterServices.cs: Fixed some comments
svn path=/trunk/mcs/; revision=19807
2003-11-11 01:11:38 +00:00
Lluis Sanchez 510f84be77 * SerializationInfo.cs: Fixed bug in GetValue. Use IsAssignableFrom instead
of IsSubclass, since the type can be an interface.

svn path=/trunk/mcs/; revision=19275
2003-10-21 16:21:18 +00:00
Lluis Sanchez 85c9822860 * FormatterServices.cs: In GetUninitializedObject methdod, reuse
ActivationServices.AllocateUninitializedClassInstance, it does the same.

svn path=/trunk/mcs/; revision=19175
2003-10-18 18:23:03 +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
Gonzalo Paniagua Javier 1150f5cc0e 2003-07-26 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs:
	(GetSerializableMembers): check that all base types are serializable
	when getting their fields. Fixes bug #46875.

svn path=/trunk/mcs/; revision=16705
2003-07-26 15:24:11 +00:00
Lluis Sanchez 9e59120def * ObjectIDGenerator.cs: Optimized access to hashtable and reduced the
number of calls to GetType(). (Patch by Paolo).
	  Also added a NextId property that returns a new Id without registering
	  an object.

svn path=/trunk/mcs/; revision=16341
2003-07-17 12:05:27 +00:00
Lluis Sanchez 438c7d60cb * SerializationInfo.cs: Fixed bug #44955
svn path=/trunk/mcs/; revision=15643
2003-06-25 23:39:41 +00:00
Gonzalo Paniagua Javier 9c16eea9ca 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs: patch from Jean Marc that fixes bug #42742.

svn path=/trunk/mcs/; revision=14473
2003-05-11 01:58:21 +00:00
Lluis Sanchez a7a4e09ae6 * ObjectManager.cs: Corrected a problem with arrays of structs. Elements where
not correctly updated by the final fixup.

svn path=/trunk/mcs/; revision=11660
2003-02-18 00:51:24 +00:00
Lluis Sanchez 192e07c742 ObjectManager.cs: Corrected a problem with IObjectReferece objects.
svn path=/trunk/mcs/; revision=10963
2003-01-27 20:33:05 +00:00
Martin Baulig 33792aae6e 2003-01-24 Martin Baulig <[email protected]>
* ObjectManager.cs (RaiseDeserializationEvent): Walk the object
	list in the correct order.

svn path=/trunk/mcs/; revision=10872
2003-01-24 16:34:40 +00:00
Lluis Sanchez c3b1984cf2 * ObjectManager.cs: Implemented and added file
* SurrogateSelector.cs: completed implementation.
* SerializationInfo.cs: corrected a bug in GetValue method.
* ObjectIDGenerator.cs: corrected a bug. Now it does not give the same
id for two different instances that return true when calling Equal.

svn path=/trunk/mcs/; revision=10615
2003-01-17 14:18:43 +00:00
Duncan Mak c77b63d3f5 2002-12-06 Duncan Mak <[email protected]>
* UrlAttribute.cs (GetHashCode): Implemented.

	* BaseChannelSinkWithProperties.cs (constructor): Implemented by
	chaining on to the base constructor.

	* BaseChannelObjectWithProperties.cs : Implemented the Count,
	IsFixedSize, IsReadOnly, IsSynchronized, Keys, Properties, SyncRoot,
	Values properties.

	Implemented the Contains and GetEnumerator methods.

	Removed the unnecessary TODO attribute on the constructor, and the Add
	method.


	* Formatter.cs (WriteValueType): Remove the erroneous CLSCompliant attribute.

svn path=/trunk/mcs/; revision=9414
2002-12-07 01:43:39 +00:00
Gonzalo Paniagua Javier f6d18264e8 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs: implemented GetUninitializedObject.
	PopulateObjectMembers needs a working FieldInfo.SetValue (it's
	not implemented right now).

svn path=/trunk/mcs/; revision=6684
2002-08-16 19:23:57 +00:00
Gonzalo Paniagua Javier 074dd116b5 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs:a implemented GetSerializableMembers ().

svn path=/trunk/mcs/; revision=6679
2002-08-16 16:54:02 +00:00
Gonzalo Paniagua Javier 7fa479a7be 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs: New file with some implementation.

svn path=/trunk/mcs/; revision=6677
2002-08-16 15:35:10 +00:00
Dietmar Maurer 8e26f9cfaa 2002-08-16 Dietmar Maurer <[email protected]>
* SerializationInfo.cs: special case for null values.
	use the converter everywhere.

svn path=/trunk/mcs/; revision=6673
2002-08-16 12:54:45 +00:00
Dietmar Maurer 9499c0c0c8 2002-08-14 Dietmar Maurer <[email protected]>
* SerializationInfo.cs: added new function to support the runtime

svn path=/trunk/mcs/; revision=6638
2002-08-14 16:10:32 +00:00
Gonzalo Paniagua Javier b9c3c00dbf 2002-07-16 Gonzalo Paniagua Javier <[email protected]>
* Formatter.cs: added namespace.

svn path=/trunk/mcs/; revision=5821
2002-07-16 06:29:01 +00:00
Duncan Mak 7b1fcee0d0 2002-06-10 Duncan Mak <[email protected]>
* Formatter.cs: Addd to CVS.

	* FormatterConverter.cs: Added to CVS.

	* SerializationInfo.cs (AddValue): Removed extra CLSCompliant attribute.

svn path=/trunk/mcs/; revision=5213
2002-06-10 19:30:48 +00:00
Duncan Mak dcce243fc2 2002-04-12 Duncan Mak <[email protected]>
* SerializationException.cs: Added missing constructor for serialization.

svn path=/trunk/mcs/; revision=3787
2002-04-12 16:48:45 +00:00
Duncan Mak 9f5d876ed9 2002-03-12 Duncan Mak <[email protected]>
* IFormatter.cs: Fix the return type of the Serialize method.

	* ObsoleteAttribute.cs: Made Message and IsError properties
	instead of fields.

svn path=/trunk/mcs/; revision=3074
2002-03-12 18:48:12 +00:00
Nick Drochak ca777c6bc4 2002/03/07 Nick Drochak <[email protected]>
* StreamingContextStates.cs: Add missing value (CrossAppDomain) and
	adjust All value accordingly.

svn path=/trunk/mcs/; revision=2957
2002-03-07 03:31:29 +00:00
Duncan Mak c2b64e29b6 2002-03-01 Duncan Mak <[email protected]>
* ObjectIDGenerator.cs: Implemented.

	* System.Runtime.Serialization/ObjectIDGeneratorTests.cs: Added
	test for System.Runtime.Serialization.ObjectIDGenerator.

svn path=/trunk/mcs/; revision=2796
2002-03-01 05:47:39 +00:00
Duncan Mak 166b65fc32 2002-02-19 Duncan Mak <[email protected]>
* SurrogateSelector.cs: Implemented.

svn path=/trunk/mcs/; revision=2520
2002-02-19 20:19:39 +00:00
Duncan Mak 88c9c7874e 2002-02-19 Duncan Mak <[email protected]>
* SerializationInfoEnumerator.cs: oh, and simplified the Current
	      property too.

svn path=/trunk/mcs/; revision=2493
2002-02-19 04:03:21 +00:00