Class DataTypeMapper<TValue>
The default option data type mapper.
public sealed class DataTypeMapper<TValue> : IDataTypeMapper<TValue> where TValue : ICommandValue
Type Parameters
TValue
- Inheritance
-
DataTypeMapper<TValue>
- Implements
-
IDataTypeMapper<TValue>
- Inherited Members
Constructors
DataTypeMapper(TerminalOptions, ILogger<DataTypeMapper<TValue>>)
Initialize a new instance.
public DataTypeMapper(TerminalOptions options, ILogger<DataTypeMapper<TValue>> logger)
Parameters
options
TerminalOptionsThe configuration options.
logger
ILogger<DataTypeMapper<TValue>>The logger.
Methods
MapToTypeAsync(TValue)
Maps a data type to Type asynchronously.
public Task<DataTypeMapperResult> MapToTypeAsync(TValue value)
Parameters
value
TValueThe value to map.
Returns
- Task<DataTypeMapperResult>
The