public string ToString(RecordSeparator rs, FieldSeparator fs) { if (this.Count == 0) { return(""); } string rsStr = GetRecordSeparator(rs); string fsStr = GetFieldSeparator(fs); int length = this.Count; if (this.MEAny) { length++; } string[] rep = new string[length]; int position = 0; // L'erreur de mesure if (this.MEAny) { rep[position] = string.Format("{0}({1}, {2})", ME.ThroughCV ? "CV" : "SD", this.ME.Minimum, this.ME.Maximum); position++; } StringBuilder sb = new StringBuilder(measuresList[0].ToString()); for (int i = 0; i < measuresList.Count; i++) { rep[position] = measuresList[i].ToString(); position++; } return(string.Join(rsStr, rep)); }
public static string GetRecordSeparator(RecordSeparator rs) { return(recordSeparators[(int)rs]); }