FromAttributes<T>() Method
Creates a CsvConfiguration instance configured using CsvHelper attributes applied to T at the type-level. This method requires T to be annotated with CultureInfoAttribute (or to sub-class a type which is).
Namespace
CsvHelper.Configuration
Containing Type
CsvConfiguration

Syntax

public static CsvConfiguration FromAttributes<T>()

Remarks

CsvHelper attributes applied to members and parameters do not influence the return value of this method. Such attributes do not define values which are used in CsvConfiguration and instead influence the maps which are built and used during reading and writing. See MemberMap and ParameterMap.

Type Parameters

Name Description
T The type whose attributes should be used to configure the CsvConfiguration instance. This is normally the type you are intending to map for reading and writing.

Return Value

Type Description
CsvConfiguration A new CsvConfiguration instance configured with attributes applied to T.