MemberTypesAttribute Class
The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties.
Namespace
CsvHelper.Configuration.Attributes
Interfaces
Base Types
  • Attribute
graph BT Type-->Base0["Attribute"] Type-.->Interface0["IClassMapper"] click Interface0 "/CsvHelper/api/CsvHelper.Configuration.Attributes/IClassMapper" Type["MemberTypesAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class MemberTypesAttribute : Attribute, IClassMapper

Attributes

Type Description
AttributeUsage

Constructors

Name Summary
MemberTypesAttribute(MemberTypes) The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties.

Properties

Name Property Type Summary
MemberTypes MemberTypes
The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties.

Methods

Name Return Value Summary
ApplyTo(CsvConfiguration) void
Applies configuration.