Class MemberTypesAttribute
- Namespace
- CsvHelper.Configuration.Attributes
- Assembly
- CsvHelper.dll
The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class MemberTypesAttribute : Attribute, IClassMapper
- Inheritance
-
MemberTypesAttribute
- Implements
- Inherited Members
Constructors
MemberTypesAttribute(MemberTypes)
The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties.
public MemberTypesAttribute(MemberTypes memberTypes)
Parameters
memberTypes
MemberTypes
Properties
MemberTypes
The member types that are used when auto mapping. MemberTypes are flags, so you can choose more than one. Default is Properties.
public MemberTypes MemberTypes { get; }
Property Value
Methods
ApplyTo(CsvConfiguration)
public void ApplyTo(CsvConfiguration configuration)
Parameters
configuration
CsvConfiguration