using System.Collections.Generic; using System.Text; namespace ChanSort.Api { public static class CsvFile { public static IList Parse(string line, char separator) { if (line.EndsWith("\n")) line = line.Substring(0, line.Length - 1); if (line.EndsWith("\r")) line = line.Substring(0, line.Length - 1); List tokens = new List(); if (line.Length == 0) return tokens; bool inQuote = false; StringBuilder token = new StringBuilder(); for(int i = 0, len=line.Length; i