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