NullableConverter Class
Converts a Nullable<T> to and from a string.
Namespace
CsvHelper.TypeConversion
Interfaces
Base Types
graph BT Type-->Base0["DefaultTypeConverter"] click Base0 "/CsvHelper/api/CsvHelper.TypeConversion/DefaultTypeConverter" Base0-->Base1["object"] Type-.->Interface0["ITypeConverter"] click Interface0 "/CsvHelper/api/CsvHelper.TypeConversion/ITypeConverter" Type["NullableConverter"] class Type type-node

Syntax

public class NullableConverter : DefaultTypeConverter, ITypeConverter

Constructors

Name Summary
NullableConverter(Type, TypeConverterCache) Creates a new NullableConverter for the given Nullable<T> Type.

Properties

Name Property Type Summary
NullableType Type
Gets the type of the nullable.
UnderlyingType Type?
Gets the underlying type of the nullable.
UnderlyingTypeConverter ITypeConverter
Gets the type converter for the underlying type.

Methods

Name Return Value Summary
ConvertFromString(string, IReaderRow, MemberMapData) object
Converts the string to an object.
ConvertToString(object, IWriterRow, MemberMapData) string
Converts the object to a string.