Exemple #1
0
        public void ProcessLineTest()
        {
            const string testLine1 = @"a,b,,<web>q<web>,c~,";

            DelimiterInfo di = new DelimiterInfo();

            di.Delimiters = new string[] { ",", "\t", " " };
            di.MarkMap    = new Dictionary <string, string>();
            di.MarkMap.Add("~", "\r\n");
            di.MarkMap.Add("<web>", "\"");

            DelimitedReader reader = new DelimitedReader(di);

            reader.Feed(testLine1);
        }