public override void InternalSerialize() { var node = XmlDocument.CreateElement(nameof(SerializableObject.Prop)); node.InnerText = SerializableObject.Prop.ToString(CultureInfo.InvariantCulture); XmlRoot.AppendChild(node); }
public override void InternalSerialize() { foreach (SerializerTestItem item in SerializableObject.AsReadOnly()) { var node = XmlDocument.CreateElement(nameof(SerializerTestItem)); node.InnerText = item.Prop.ToString(CultureInfo.InvariantCulture); XmlRoot.AppendChild(node); } }