public FitCsvRecord AddRecord()
        {
            var result = new FitCsvRecord();

            _records.Add(result);
            return(result);
        }
        private string FormatFieldString(int recordNumber, FitCsvRecord csvRecord, List <Field> fitRecord)
        {
            var sb = new StringBuilder();

            sb.Append("\n\nRecord Offset in FIT file: " + recordNumber);
            sb.Append("\nCSV Record:\n");
            foreach (var csvField in csvRecord.Fields)
            {
                sb.Append(String.Format("{0}={1} {2}\n", csvField.Name, csvField.Value, csvField.Units));
            }
            sb.Append("\nFIT Record:\n");
            foreach (var fitField in fitRecord)
            {
                sb.Append(String.Format("{0}={1} {2}\n", FitParserHelpers.ConvertPascalCaseToRubyCase(fitField.Name), ConvertField(fitField.GetValue()), fitField.Units));
            }
            return(sb.ToString());
        }