Aqueduct.Utils.CSVService.CreateCSVLine C# (CSharp) Méthode

CreateCSVLine() protected static méthode

protected static CreateCSVLine ( ICollection values ) : string
values ICollection
Résultat string
        protected static string CreateCSVLine(ICollection<string> values)
        {
            StringBuilder sb = new StringBuilder();
            foreach (string value in values)
            {
                string processedValue = ProcessMultilineContent(value);
                sb.AppendFormat("\"{0}\",", processedValue.Replace("\"", "\"\""));
            }
            if (sb.Length > 0)
                sb = sb.Remove(sb.Length - 1, 1);
            return sb.ToString();
        }