private void AddItem(string section, object item) { var serializer = XmlSerializerCache.GetOrAdd(item.GetType(), section); serializer.Serialize(this, item, XmlSerializerCache.BlankNamespace); }
internal static void ToXml(XmlWriter writer, object data, string xmlName) { var serializer = XmlSerializerCache.GetOrAdd(data.GetType(), xmlName); serializer.Serialize(writer, data, XmlSerializerCache.BlankNamespace); }