Appends a prefix to the header of each field of the reference member.
- Namespace
- CsvHelper
.Configuration .Attributes - Interfaces
- Base Types
-
- Attribute
graph BT
Type-->Base0["Attribute"]
Type-.->Interface0["IMemberReferenceMapper"]
click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IMemberReferenceMapper"
Type-.->Interface1["IParameterReferenceMapper"]
click Interface1 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IParameterReferenceMapper"
Type["HeaderPrefixAttribute"]
class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class HeaderPrefixAttribute : Attribute, IMemberReferenceMapper, IParameterReferenceMapper
Attributes
| Type | Description |
|---|---|
| AttributeUsage |
Constructors
| Name | Summary |
|---|---|
| Header |
Appends a prefix to the header of each field of the reference member. |
| Header |
Appends a prefix to the header of each field of the reference member. |
| Header |
Appends a prefix to the header of each field of the reference member. |
| Header |
Appends a prefix to the header of each field of the reference member. |
Properties
| Name | Property Type | Summary |
|---|---|---|
| Inherit | bool |
Gets a value indicating whether the prefix should inherit parent prefixes.
|
| Prefix | string |
Gets the prefix.
|
Methods
| Name | Return Value | Summary |
|---|---|---|
| ApplyTo |
void |
Applies configuration to the given
MemberReferenceMap.
|
| ApplyTo |
void |
Applies configuration to the given
ParameterReferenceMap.
|