FixedWidthSerializer<TTargetType> class

Used to serialize a TargetType object to a CSV file.

public class FixedWidthSerializer<TTargetType> : TextSerializer<TTargetType>
    where TTargetType : new()
parameter description
TTargetType The type of object that will be serialized. Either TargetType must have the TextSerializable attribute applied, and any fields contained must have the FixedWidthField attribute applied to them, or Fluent Configuration must be used.

Public Members

name description
FixedWidthSerializer() Initializes a new instance of the FixedWidthSerializer class with default values, using Attributes on the target type to determine the configuration of fields and properties.
FixedWidthSerializer(…) Initializes a new instance of the FixedWidthSerializer class using Fluent configuration.

Protected Members

name description
override FormatOutput(…) Write out a list of fields in the correct fixed width format.
override GetFieldFromAttribute(…) Used by a derived class to return a Field configuration specific to this serializer back for a given method based on the attributes applied.
override Parse(…) Parses a line of text as a record and returns the fields.

See Also