private void ExportAsXML() { var stringBuilder = new StringBuilder(); foreach (var file in fileList) { stringBuilder.Append(ExportConverter.ToXML(file, columns)); } SaveToFile(stringBuilder.ToString()); }
private void ExportAsJSON() { var stringBuilder = new StringBuilder(); stringBuilder.AppendLine(@"["); foreach (var file in fileList) { stringBuilder.Append(ExportConverter.ToJSON(file, columns)); } stringBuilder.AppendLine(@"]"); SaveToFile(stringBuilder.ToString().TrimEnd(',')); }