Exemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="newLine"></param>
 /// <param name="parseStrategy"></param>
 /// <returns></returns>
 public static dynamic Csv(string newLine, IDelimitedParseStrategy parseStrategy)
 {
     return Delimited(",", newLine, parseStrategy);
 }
Exemplo n.º 2
0
 /// <summary>
 /// An <see cref="IRecordReader"/> implementation that reads delimited formats such as CSV.
 /// </summary>
 /// <param name="fieldDelimiter">The string to use as a field delimiter.</param>		
 /// <param name="recordDelimiter">The string to use as a record delimiter. Usually a newline.</param>
 /// <param name="parseStrategy">The strategy to use when reading text.</param>
 public DelimitedRecordReader(string fieldDelimiter, string recordDelimiter, IDelimitedParseStrategy parseStrategy)
 {
     _fieldDelimiter = fieldDelimiter;
     _recordDelimiter = recordDelimiter;
     _parseStrategy = parseStrategy;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="delimiter"></param>
 /// <param name="newLine"></param>
 /// <param name="parseStrategy"></param>
 /// <returns></returns>
 public static dynamic Delimited(string delimiter, string newLine, IDelimitedParseStrategy parseStrategy)
 {
     return new Parser(new DelimitedRecordReader(delimiter, newLine, parseStrategy));
 }