示例#1
0
 public override void InternalDeserialize()
 {
     foreach (XmlElement node in XmlRoot.ChildNodes)
     {
         if (node.Name == nameof(SerializerTestItem))
         {
             if (int.TryParse(node.InnerText, out var value))
             {
                 SerializableObject.Add(new SerializerTestItem {
                     Prop = value
                 });
             }
         }
     }
 }