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

Syntax

public static CsvConfiguration FromAttributes(Type type)

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.

Parameters

Name Type Description
type Type

Return Value

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