* 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
* 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
* SerializationObjectManager.cs,
SerializationCallbacks.cs: Add support for NET_2_0 serialization
events. See bug #78594.
svn path=/trunk/mcs/; revision=67105
* 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
* 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
* 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
* 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
* 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
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
* FormatterServices.cs:
(GetSerializableMembers): check that all base types are serializable
when getting their fields. Fixes bug #46875.
svn path=/trunk/mcs/; revision=16705
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
* 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
* 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
* FormatterServices.cs: implemented GetUninitializedObject.
PopulateObjectMembers needs a working FieldInfo.SetValue (it's
not implemented right now).
svn path=/trunk/mcs/; revision=6684
* 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