Maps class members to CSV fields.
- Namespace
- CsvHelper
.Configuration - Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type["ClassMap"]
class Type type-node
Derived0["ClassMap<TClass>"]-->Type
click Derived0 "/CsvHelper/api/CsvHelper.Configuration/ClassMap_1"
Syntax
public abstract class ClassMap
Properties
Name | Property Type | Summary |
---|---|---|
ClassType | Type |
The type of the class this map is for.
|
MemberMaps | MemberMapCollection |
The class member mappings.
|
ParameterMaps | List |
The class constructor parameter mappings.
|
ReferenceMaps | Member |
The class member reference mappings.
|
Methods
Name | Return Value | Summary |
---|---|---|
ApplyAttributes |
void |
Applies attribute configurations to the map.
|
ApplyAttributes |
void |
Applies attribute configurations to the map.
|
ApplyAttributes |
void |
Applies attribute configurations to the map.
|
ApplyAttributes |
void |
Applies attribute configurations to the map.
|
AutoMap |
void |
Auto maps all members for the given type. If a member
is mapped again it will override the existing map.
|
AutoMap |
void |
Auto maps all members for the given type. If a member
is mapped again it will override the existing map.
|
AutoMap |
void |
Auto maps all members for the given type. If a member
is mapped again it will override the existing map.
|
Auto |
void |
Auto maps the given map using constructor parameters.
|
AutoMapMembers |
void |
Auto maps the given map and checks for circular references as it goes.
|
Check |
bool |
Checks for circular references.
|
GetGenericType |
Type |
Gets the generic type for this class map.
|
GetMaxIndex |
int |
Get the largest index for the
members and references.
|
Map |
MemberMap |
Maps a non-member to a CSV field. This allows for writing
data that isn't mapped to a class member.
|
Map |
MemberMap |
Maps a member to a CSV field.
|
Parameter |
ParameterMap |
Maps a constructor parameter to a CSV field.
|
Parameter |
ParameterMap |
Maps a constructor parameter to a CSV field.
|
Parameter |
ParameterMap |
Maps a constructor parameter to a CSV field.
|
References |
MemberReferenceMap |
Maps a member to another class map.
|
ReIndex |
int |
Resets the indexes based on the given start index.
|