コード例 #1
0
 public static void WriteXmlNode(WaypointRecordList l, StringBuilder sb, int indent, string name = "WaypointRecordList")
 {
     if (l == null)
     {
         return;
     }
     if ((l.Entries?.Data == null) || (l.Entries.Data.Count == 0))
     {
         YwrXml.SelfClosingTag(sb, indent, name);
     }
     else
     {
         YwrXml.OpenTag(sb, indent, name);
         l.WriteXml(sb, indent + 1);
         YwrXml.CloseTag(sb, indent, name);
     }
 }