CsvConfiguration<TTargetType>.ByConvention method

Automatically configures serializer based on the class definition. All properties and fields are added as serializable in the order they appear in the class.

public CsvConfiguration ByConvention()

Exceptions

exception condition
TextSerializationConfigurationException ByConvention fails if a class or structure contains a mix of Properties and Fields. Because of the limitations of the .NET Reflection API, the order cannot be properly determined at runtime if both appear in the same class.

See Also