This writer can process a lot more xaml inputs. It is now unified to
XamlXmlWriter, sharing some internals (already existed in XamlXmlWriter.cs).
Had to disable a few minor tests that used to pass for invalid inputs.
This change was basically for string serialization of XamlTypeName, namely
PropertyDefinition serialization.
Turned out it should be used in a lot of places where IServiceProvider
and ITypeDescriptorContext is expected.
IServiceProvider implementations in XamlWriters are replaced.
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).
* XamlWriterStateManager.cs, XamlXmlWriter.cs : extracted former
from latter, to reuse it in XamlObjectWriter too.
* System.Xaml.dll.sources : add new internal type.
svn path=/trunk/mcs/; revision=155248