2008-03-01 Ivan N. Zlatev <contact@i-nz.net>
authorIvan Zlatev <ivan@ivanz.com>
Sat, 1 Mar 2008 23:12:56 +0000 (23:12 -0000)
committerIvan Zlatev <ivan@ivanz.com>
Sat, 1 Mar 2008 23:12:56 +0000 (23:12 -0000)
commitffad8df117e4077d39268902c8f9641e1d5d8f0f
treea36ac41116df3c87862f0f79a507ac84adfd0080
parent55d28c2235779bd90a7dbc4f60ae02f8fde21df7
2008-03-01  Ivan N. Zlatev  <contact@i-nz.net>

* CodeDomSerializerBase.cs, PropertyCodeDomSerializer.cs:
PropertySerializer shouldn't check for serialization visibility
as its duty is to serialize properies if invoked directly.
CodeDomSerializerBase.SerializeProperties should check the
visibility.
* CodeDomSerializer.cs: Fix deserialize to deserialize all
statements.
* CodeDomDesignerLoader.cs: Implement IDesignerSerializationService
using the ComponentSerializationService instead of calling
ourselves recursive.
* CodeDomComponentSerializationService.cs: A lot of bugfixes.
* DesignerSerializationManager.cs:
 - Verify that we are not in session before creating a new one.
 - Do not check whether we should
 preserve names in GetInstance. This is only for CreateInstance.
 - Fix a NRE if serialization providers are not initialized.
* CodeDomSerializationProvider.cs, CodeDomDesignerLoader.cs:
Refactor the codedom provider to a singleton, so that
CodeDomComponentSerializationService and others can share the
instance.
* SerializeAbsoluteContext.cs: ShouldSerialize should check if
the absolute context is of the same member not the opposite.

svn path=/trunk/mcs/; revision=97101
mcs/class/System.Design/System.ComponentModel.Design.Serialization/Changelog
mcs/class/System.Design/System.ComponentModel.Design.Serialization/CodeDomComponentSerializationService.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/CodeDomDesignerLoader.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializationProvider.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializer.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/CodeDomSerializerBase.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/DesignerSerializationManager.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/PropertyCodeDomSerializer.cs
mcs/class/System.Design/System.ComponentModel.Design.Serialization/SerializeAbsoluteContext.cs