Interface IFactory
- Namespace
- CsvHelper
- Assembly
- CsvHelper.dll
Defines methods used to create CsvHelper classes.
public interface IFactory
Methods
CreateClassMapBuilder<T>()
Provides a fluent interface for dynamically creating ClassMap<TClass>s
IHasMap<T> CreateClassMapBuilder<T>()
Returns
- IHasMap<T>
Next available options
Type Parameters
TType of class to map
CreateParser(TextReader, CsvConfiguration)
Creates an IParser.
IParser CreateParser(TextReader reader, CsvConfiguration configuration)
Parameters
readerTextReaderThe text reader to use for the csv parser.
configurationCsvConfigurationThe configuration to use for the csv parser.
Returns
- IParser
The created parser.
CreateParser(TextReader, CultureInfo)
Creates an IParser.
IParser CreateParser(TextReader reader, CultureInfo cultureInfo)
Parameters
readerTextReaderThe text reader to use for the csv parser.
cultureInfoCultureInfoThe culture information.
Returns
- IParser
The created parser.
CreateReader(IParser)
Creates an IReader.
IReader CreateReader(IParser parser)
Parameters
parserIParserThe parser used to create the reader.
Returns
- IReader
The created reader.
CreateReader(TextReader, CsvConfiguration)
Creates an IReader.
IReader CreateReader(TextReader reader, CsvConfiguration configuration)
Parameters
readerTextReaderThe text reader to use for the csv reader.
configurationCsvConfigurationThe configuration to use for the reader.
Returns
- IReader
The created reader.
CreateReader(TextReader, CultureInfo)
Creates an IReader.
IReader CreateReader(TextReader reader, CultureInfo cultureInfo)
Parameters
readerTextReaderThe text reader to use for the csv reader.
cultureInfoCultureInfoThe culture information.
Returns
- IReader
The created reader.
CreateWriter(TextWriter, CsvConfiguration)
Creates an IWriter.
IWriter CreateWriter(TextWriter writer, CsvConfiguration configuration)
Parameters
writerTextWriterThe text writer to use for the csv writer.
configurationCsvConfigurationThe configuration to use for the writer.
Returns
- IWriter
The created writer.
CreateWriter(TextWriter, CultureInfo)
Creates an IWriter.
IWriter CreateWriter(TextWriter writer, CultureInfo cultureInfo)
Parameters
writerTextWriterThe text writer to use for the csv writer.
cultureInfoCultureInfoThe culture information.
Returns
- IWriter
The created writer.