public void Export(string fileName) { using (var writer = File.CreateText(fileName)) foreach (var item in StringFile.Items) { writer.WriteLine(CsvUtil.Format(new[] { item.Id.ToString(), item.Name, item.Value })); } }