MultiColumnTypeConverterT Class
Abstract base class for type converters that provides conversions between
.NET data types and CSV data that is distributed across multiple columns
of a CSV file.
Namespace: FolkerKinzel.CsvTools.Mappings.TypeConvertersAssembly: FolkerKinzel.CsvTools.Mappings (in FolkerKinzel.CsvTools.Mappings.dll) Version: 1.1.0+1263e8243dc2cd78095f678f813d7d9c52ea4315
public abstract class MultiColumnTypeConverter<T> : ITypeConverter<T>,
ICloneable
Public MustInherit Class MultiColumnTypeConverter(Of T)
Implements ITypeConverter(Of T), ICloneable
generic<typename T>
public ref class MultiColumnTypeConverter abstract : ITypeConverter<T>,
ICloneable
[<AbstractClassAttribute>]
type MultiColumnTypeConverter<'T> =
class
interface ITypeConverter<'T>
interface ICloneable
end
- Inheritance
- Object MultiColumnTypeConverterT
- Implements
- ITypeConverterT, ICloneable
Type Parameters
- T
- The data Type that the
MultiColumnTypeConverterT converts.
A ready-to-use implementation of this class can't be provided because their
structure depends on the CSV file to be processed. Fortunately, writing a derived
class is easy:
Pass a
CsvMapping instance that
targets the required columns of the CSV file to the constructor, and override
the abstract members. (For overriding
Clone using the
copy constructor
(
MultiColumnTypeConverterT(MultiColumnTypeConverterT)) is required!)
AcceptsNull |
Gets a value indicating whether the converter accepts
null references as input.
|
DataType |
The data type the converter converts.
|
DefaultValue |
Gets the value to return if the parser finds no data in the CSV,
or if parsing fails and
the Throwing property is false.
|
Mapping |
The CsvMapping to use to access those columns
of the CSV file that are required for the Type conversion.
|
Throwing |
Gets a value indicating whether the converter throws a
FormatException
when a parsing error occurs, or if it returns
DefaultValue value instead.
|
Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.