public void Write(TextWriter stream, AbaFile file) { var data = new List <object>(); data.Add(file.DescriptiveRecord); foreach (var d in file.DetailRecords) { data.Add(d); } data.Add(file.FileTotalRecord); _engine.WriteStream(stream, data); }