Class FormatAttribute
- Namespace
- CsvHelper.Configuration.Attributes
- Assembly
- CsvHelper.dll
The string format to be used when type converting.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class FormatAttribute : Attribute, IMemberMapper, IParameterMapper
- Inheritance
-
FormatAttribute
- Implements
- Inherited Members
Constructors
FormatAttribute(string)
The string format to be used when type converting.
public FormatAttribute(string format)
Parameters
format
stringThe format.
FormatAttribute(params string[])
The string format to be used when type converting.
public FormatAttribute(params string[] formats)
Parameters
formats
string[]The formats.
Properties
Formats
Gets the formats.
public string[] Formats { get; }
Property Value
- string[]
Methods
ApplyTo(MemberMap)
public void ApplyTo(MemberMap memberMap)
Parameters
memberMap
MemberMap
ApplyTo(ParameterMap)
public void ApplyTo(ParameterMap parameterMap)
Parameters
parameterMap
ParameterMap