public override void InternalSerialize()
        {
            var node = XmlDocument.CreateElement(nameof(SerializableObject.Prop));

            node.InnerText = SerializableObject.Prop.ToString(CultureInfo.InvariantCulture);
            XmlRoot.AppendChild(node);
        }
Esempio n. 2
0
 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);
     }
 }