HeaderPrefixAttribute Class
Appends a prefix to the header of each field of the reference member.
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
HeaderPrefixAttribute() Appends a prefix to the header of each field of the reference member.
HeaderPrefixAttribute(bool) Appends a prefix to the header of each field of the reference member.
HeaderPrefixAttribute(string, bool) Appends a prefix to the header of each field of the reference member.
HeaderPrefixAttribute(string) 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(MemberReferenceMap) void
Applies configuration to the given MemberReferenceMap.
ApplyTo(ParameterReferenceMap) void
Applies configuration to the given ParameterReferenceMap.