Introduce new XamlObjectReader implementation.
authorAtsushi Eno <atsushi@ximian.com>
Thu, 28 Oct 2010 20:58:20 +0000 (05:58 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Thu, 28 Oct 2010 20:58:20 +0000 (05:58 +0900)
commit9f00ccba9ef81a28115650854f6c710153d39890
tree22de2ac22d6bb5f16280cd99d2ac5f31512112ba
parentf1d77de5c82ba5206289172e46bc4f46160ad4f9
Introduce new XamlObjectReader implementation.

Nodes are iterated in XamlNodeIterator which is used by XamlObjectReader.
It collects namespace declarations as it does in the reading the objects.
The new code is somewhat better, with less "special" hardcoded rules.

It can be even compiled with .NET (with TypeExtensionMethods).
mcs/class/System.Xaml/System.Xaml.dll.sources
mcs/class/System.Xaml/System.Xaml/TypeExtensionMethods.cs
mcs/class/System.Xaml/System.Xaml/XamlNode.cs [new file with mode: 0644]
mcs/class/System.Xaml/System.Xaml/XamlObjectReader-new.cs [new file with mode: 0644]
mcs/class/System.Xaml/System.Xaml/XamlObjectReader.cs
mcs/class/System.Xaml/Test/System.Xaml/XamlObjectReaderTest.cs