public static void ProcessSubreportLinks(SubreportLinks sls, XmlWriter xmlw) { xmlw.WriteStartElement("SubreportLinks"); xmlw.WriteAttributeString("Count", sls.Count.ToStringSafe()); foreach (SubreportLink sl in sls) { ProcessSubreportLink(sl, xmlw); } xmlw.WriteEndElement(); }
public static void ProcessSubreportLinks(SubreportLinks sls, Utf8JsonWriter jsonw) { jsonw.WritePropertyName("SubreportLinks"); jsonw.WriteStartObject(); jsonw.WriteString("Count", sls.Count.ToStringSafe()); jsonw.WritePropertyName("Items"); jsonw.WriteStartArray(); foreach (SubreportLink sl in sls) { ProcessSubreportLink(sl, jsonw); } jsonw.WriteEndArray(); jsonw.WriteEndObject(); }