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
T
Type of class to map
CreateParser(TextReader, CsvConfiguration)
Creates an IParser.
IParser CreateParser(TextReader reader, CsvConfiguration configuration)
Parameters
reader
TextReaderThe text reader to use for the csv parser.
configuration
CsvConfigurationThe 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
reader
TextReaderThe text reader to use for the csv parser.
cultureInfo
CultureInfoThe culture information.
Returns
- IParser
The created parser.
CreateReader(IParser)
Creates an IReader.
IReader CreateReader(IParser parser)
Parameters
parser
IParserThe parser used to create the reader.
Returns
- IReader
The created reader.
CreateReader(TextReader, CsvConfiguration)
Creates an IReader.
IReader CreateReader(TextReader reader, CsvConfiguration configuration)
Parameters
reader
TextReaderThe text reader to use for the csv reader.
configuration
CsvConfigurationThe configuration to use for the reader.
Returns
- IReader
The created reader.
CreateReader(TextReader, CultureInfo)
Creates an IReader.
IReader CreateReader(TextReader reader, CultureInfo cultureInfo)
Parameters
reader
TextReaderThe text reader to use for the csv reader.
cultureInfo
CultureInfoThe culture information.
Returns
- IReader
The created reader.
CreateWriter(TextWriter, CsvConfiguration)
Creates an IWriter.
IWriter CreateWriter(TextWriter writer, CsvConfiguration configuration)
Parameters
writer
TextWriterThe text writer to use for the csv writer.
configuration
CsvConfigurationThe configuration to use for the writer.
Returns
- IWriter
The created writer.
CreateWriter(TextWriter, CultureInfo)
Creates an IWriter.
IWriter CreateWriter(TextWriter writer, CultureInfo cultureInfo)
Parameters
writer
TextWriterThe text writer to use for the csv writer.
cultureInfo
CultureInfoThe culture information.
Returns
- IWriter
The created writer.