Table of Contents

Class TimeSpanConverter

Namespace
CsvHelper.TypeConversion
Assembly
CsvHelper.dll

Converts a TimeSpan to and from a string.

public class TimeSpanConverter : DefaultTypeConverter, ITypeConverter
Inheritance
TimeSpanConverter
Implements
Inherited Members

Constructors

TimeSpanConverter()

public TimeSpanConverter()

Methods

ConvertFromString(string?, IReaderRow, MemberMapData)

Converts the string to an object.

public override object? ConvertFromString(string? text, IReaderRow row, MemberMapData memberMapData)

Parameters

text string

The string to convert to an object.

row IReaderRow

The IReaderRow for the current record.

memberMapData MemberMapData

The MemberMapData for the member being created.

Returns

object

The object created from the string.