Converts a
Nullable<T>
to and from a string
.
- Namespace
- CsvHelper
.TypeConversion - Interfaces
- Base Types
-
- object
- DefaultTypeConverter
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 |
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.
|
Underlying |
ITypeConverter |
Gets the type converter for the underlying type.
|
Methods
Name | Return Value | Summary |
---|---|---|
ConvertFromString |
object |
Converts the string to an object.
|
ConvertToString |
string |
Converts the object to a string.
|