protected virtual string SerializeModelToString(T model) { switch (modelFormat) { case ModelFormat.XML: return(Xml.ToXml(model)); case ModelFormat.JSON: return(StdJson.ObjectToString(model, indented: true)); default: throw new Exception($"Model format {modelFormat} not implemented in SerializeModelToString"); } }
protected virtual string SerializeModelToString(T model) { return(Xml.ToXml(model)); }