Class DefaultTypeParserMaker
The object parser, the maker that claims any type no other maker did. It maps a result's columns onto a type's members and constructor by name, the default behind mapping a plain class, record, or struct.
public class DefaultTypeParserMaker : ITypeParserMaker, ITypeParserSchemaMatcher
- Inheritance
-
DefaultTypeParserMaker
- Implements
- Inherited Members
- Extension Methods
Methods
CanHandle<T>()
Whether this maker claims T.
[ExcludeFromCodeCoverage]
public bool CanHandle<T>()
Returns
Type Parameters
T
TryMakeParser<T>(INullColHandler, ColumnInfo[], out ITypeParser<T>)
Builds the object parser for T over the given columns, matching them to the
type's members and constructor. It opts the result into sequential reading when the mapping's column
order allows it.
public bool TryMakeParser<T>(INullColHandler nullColHandler, ColumnInfo[] cols, out ITypeParser<T> parser)
Parameters
nullColHandlerINullColHandlercolsColumnInfo[]parserITypeParser<T>
Returns
Type Parameters
T