Commit Graph
108 Commits
Author SHA1 Message Date
Marek Safar 336382e2b1 [corlib] corcompare update 2014-08-25 13:12:42 +02:00
Lluis Sanchez 4a8e55bf69 Fix serialization issue
Fixes BXC 5667 - SerializationException: The object with ID 1 could
not be resolved
2014-02-06 22:01:14 +01:00
Marek Safar bb05074a9f Replace some hashtables with dictionaries 2013-02-27 22:58:32 +01:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Sebastien Pouliot 314842bef5 Enable some code to be included in Moonlight's S.X.S.dll SDK assembly
* System.Collections/ArrayList.cs:
* System.Collections/Hashtable.cs:
	Do not include debugger-related attributes and some interfaces
	when compiled outside corlib

* System.Runtime.Serialization/ObjectIDGenerator.cs: Ensure this can be
compiled outside corlib (needed for ML S.X.S.dll where even internals
cannot be used)
2011-05-06 08:40:41 -04:00
Gonzalo Paniagua Javier 501bf45d67 The Hashtable is back
But this time it is using a hash code provider and a comparer that
	don't invoke the object's methods.
	Thanks to Paolo for pointing this out.
2010-09-22 11:42:35 -04:00
Gonzalo Paniagua Javier 22b0194255 Don't store objects in a Hashtable.
Storing the objects in Hashtable causes the GetHashCode() and may be
	Equals() methods to be called on the object, which MS does not do.
	I'm using a list holding WeakReferences. Not sure if hard references
	would be ok.

	Fixes bug #640688.
2010-09-21 17:28:03 -04:00
Carlos Alberto Cortez 56d739fc70 Set 4.0 members in SerializationInfo.SetType.
* SerializationInfo.cs: Set/reset the new 4.0 members in SetType
	based on the new type.
2010-08-26 11:41:28 +02:00
Carlos Alberto Cortez c606b22cd8 Add 4.0 FormatterServices.IGetSurrogateForCyclicalReference.
* FormatterServices.cs: Add 4.0 GetSurrogateForCyclicalReference
	method.
2010-08-23 07:30:40 +02:00
Carlos Alberto Cortez 2d5a6a0704 Remove NET_1_1 directive from FormatterServices.cs.
* FormatterServices.cs: Remove NET_1_1 directive, since it's
	useless for us now.
2010-08-23 07:30:40 +02:00
Carlos Alberto Cortez e6a65850ca Add 4.0 SerializationBinder.BindToName.
* SerializationBinder.cs: Add 4.0 BindToName.
2010-08-16 16:27:04 +02:00
Carlos Alberto Cortez 95287e33ba Add all the new 4.0 properties of SerializationInfo.
* SerializationInfo.cs: Add 4.0 ObjectType,
	IsAssemblyNameSetExplicit and IsFullTypeNameSetExplicit.
2010-08-16 16:27:03 +02:00
Jb Evain 59007a0dcc 2010-06-03 Jb Evain <[email protected]>
* SafeSerializationEventArgs.cs: add new type in net_4_0.


svn path=/trunk/mcs/; revision=158388
2010-06-03 09:41:32 +00:00
Jb Evain 3017bd9c81 2010-06-03 Jb Evain <[email protected]>
* ISafeSerializationData.cs: add new interface in net_4_0.


svn path=/trunk/mcs/; revision=158386
2010-06-03 09:34:24 +00:00
Miguel de Icaza 0fb43d6e9f 2010-03-30 Sebastien Pouliot <[email protected]>
* moonlight_raw_corlib.dll.sources: Fix Moonlight since these 
	types now reside in mscorlib (not System.Coe) for NET_4_0 and
	also for SL4

2010-03-26  Sebastien Pouliot  <[email protected]>

	* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
	since it contains parts of the Assembly features (partial class)

svn path=/trunk/mcs/; revision=154531
2010-03-31 05:05:22 +00:00
Miguel de Icaza 3c39ac4586 Jumbo patch for NET_2_0, mscorlib is now clean
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Miguel de Icaza 9076aeed2d 2008-05-22 Miguel de Icaza <[email protected]>
* SerializationCallbacks.cs: This lock has a high contention rate
	on ASP.NET web sites, with multiple cores we end up spending a lot
	of time on this check.   

	Rewrite this code to have two code paths since we know that the
	cache is append-only.  

svn path=/trunk/mcs/; revision=103852
2008-05-22 23:28:13 +00:00
Andreas N 6d0a2ee390 2008-04-02 Andreas Nahr <[email protected]>
* IFormatterConverter.cs
	* SerializationException.cs
	* StreamingContext.cs: Fix parameter names

svn path=/trunk/mcs/; revision=99619
2008-04-02 07:45:41 +00:00
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 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14: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 103ebf665f Set native EOL style.
svn path=/trunk/mcs/; revision=67119
2006-10-30 00:37:58 +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
Robert Jordan fd24a48b6e Normalize EOL style to CRLF (least changes).
svn path=/trunk/mcs/; revision=67088
2006-10-29 15:59:14 +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
Raja R Harinath 7e877a1546 Make line-ending uniform
svn path=/trunk/mcs/; revision=54688
2005-12-21 10:41:07 +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
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
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
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 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
Raja R Harinath 97553bb62e cvs ignores, sorry about the spam
svn path=/trunk/mcs/; revision=33874
2004-09-14 09:59:51 +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 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
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