Encog.Persist.EncogFileSection.SplitColumns C# (CSharp) Méthode

SplitColumns() public static méthode

Split a delimited string into columns.
public static SplitColumns ( String line ) : IList
line String THe string to split.
Résultat IList
        public static IList<String> SplitColumns(String line)
        {
            IList<String> result = new List<String>();
            string[] tok = line.Split(',');
            foreach (string t in tok)
            {
                String str = t.Trim();
                if ((str.Length > 0) && (str[0] == '\"'))
                {
                    str = str.Substring(1);
                    if (str.EndsWith("\""))
                    {
                        str = str.Substring(0, (str.Length - 1) - (0));
                    }
                }
                result.Add(str);
            }
            return result;
        }