Maps a member to a CSV field.
- Namespace
- CsvHelper
.Configuration - Containing Type
- ClassMap
<TClass>
Syntax
public virtual MemberMap Map<T>(Expression<Func<T, object>> expression, bool useExistingMap = true)
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| expression | Expression |
The member to map. |
| useExistingMap | bool | If true, an existing map will be used if available. If false, a new map is created for the same member. |
Return Value
| Type | Description |
|---|---|
| MemberMap | The member mapping. |