private void AddData(IDataCollector recorder) { if (recorder != null) { streamWriter.Write(recorder.Data() + separator); } }